diff options
Diffstat (limited to 'src/qtmenuitem.cpp')
-rw-r--r-- | src/qtmenuitem.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/qtmenuitem.cpp b/src/qtmenuitem.cpp index 34be067e5..0ee7afd16 100644 --- a/src/qtmenuitem.cpp +++ b/src/qtmenuitem.cpp @@ -88,6 +88,7 @@ QtMenuItem::QtMenuItem(QObject *parent) { connect(_action, SIGNAL(triggered()), this, SIGNAL(triggered())); connect(_action, SIGNAL(toggled(bool)), this, SIGNAL(toggled(bool))); + connect(_action, SIGNAL(changed()), this, SIGNAL(enabledChanged())); } QtMenuItem::~QtMenuItem() @@ -116,6 +117,11 @@ void QtMenuItem::setChecked(bool checked) _action->setChecked(checked); } +void QtMenuItem::setEnabled(bool enabled) +{ + _action->setEnabled(enabled); +} + QString QtMenuItem::text() const { return _action->text(); @@ -136,6 +142,11 @@ bool QtMenuItem::checked() const return _action->isChecked(); } +bool QtMenuItem::enabled() const +{ + return _action->isEnabled(); +} + QAction * QtMenuItem::action() { return _action; |