The AppMenuItem class provides a model for a menu item.
More...
#include "framework/ui/menubar/AppMenuItem.h"
|
void | textChanged (QString text) |
|
void | submenuChanged (AppMenuModel *menu) |
|
void | isSeparatorChanged (bool value) |
|
void | checkableChanged (bool checkable) |
|
void | checkedChanged (bool checked) |
|
void | clicked () |
|
void | enabledChanged () |
|
|
| AppMenuItem (QObject *parent=nullptr) |
|
QString | text (void) |
|
void | setText (QString newText) |
|
AppMenuModel * | submenu (void) |
|
void | setSubmenu (AppMenuModel *newSubmenu) |
|
bool | isSeparator (void) |
|
void | setIsSeparator (bool newIsSeparator) |
|
bool | checkable (void) |
|
void | setCheckable (bool newCheckable) |
|
bool | checked (void) |
|
void | setChecked (bool newChecked) |
|
bool | enabled () const |
|
void | setEnabled (bool newEnabled) |
|
|
QString | m_text |
|
AppMenuModel * | m_submenu = nullptr |
|
bool | m_isSeparator = false |
|
bool | m_checkable = false |
|
bool | m_checked = false |
|
bool | m_enabled = true |
|
The AppMenuItem class provides a model for a menu item.
◆ AppMenuItem()
AppMenuItem::AppMenuItem |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ enabled()
bool AppMenuItem::enabled |
( |
| ) |
const |
Whether the menu item is enabled (can be clicked).
- Since
- Open-Typer 5.2.0
◆ isSeparator
bool AppMenuItem::isSeparator |
|
readwrite |
If true, the item doesn't display any text and is a menu separator.
◆ submenu
◆ text
QString AppMenuItem::text |
|
readwrite |
The documentation for this class was generated from the following files:
- src/framework/ui/menubar/AppMenuItem.h
- src/framework/ui/menubar/AppMenuItem.cpp