35 Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
36 Q_PROPERTY(
AppMenuModel *submenu READ submenu WRITE setSubmenu NOTIFY submenuChanged)
37 Q_PROPERTY(
bool isSeparator READ isSeparator WRITE setIsSeparator NOTIFY isSeparatorChanged)
38 Q_PROPERTY(
bool checkable READ checkable WRITE setCheckable NOTIFY checkableChanged)
39 Q_PROPERTY(
bool checked READ checked WRITE setChecked NOTIFY checkedChanged)
40 Q_PROPERTY(
bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged)
45 void setText(QString newText);
50 bool isSeparator(
void);
51 void setIsSeparator(
bool newIsSeparator);
54 void setCheckable(
bool newCheckable);
57 void setChecked(
bool newChecked);
60 void setEnabled(
bool newEnabled);
65 bool m_isSeparator = false;
66 bool m_checkable = false;
67 bool m_checked = false;
68 bool m_enabled = true;
71 void textChanged(QString text);
73 void isSeparatorChanged(
bool value);
74 void checkableChanged(
bool checkable);
75 void checkedChanged(
bool checked);
77 void enabledChanged();