diff options
Diffstat (limited to 'src/common/qstateaction.h')
-rw-r--r-- | src/common/qstateaction.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/common/qstateaction.h b/src/common/qstateaction.h index 3ed6bf3..4019c64 100644 --- a/src/common/qstateaction.h +++ b/src/common/qstateaction.h @@ -27,17 +27,26 @@ class QStateAction : public QAction { Q_OBJECT Q_PROPERTY(QVariant state READ state WRITE setState NOTIFY stateChanged) + Q_PROPERTY(bool valid READ isValid NOTIFY validChanged) public: QStateAction(const QString &text="", QObject *parent=0); QVariant state() const; void setState(const QVariant &state); + bool isValid() const; + Q_SIGNALS: void stateChanged(QVariant state); + void validChanged(bool valid); private: - QVariant m_state; + QVariant m_state; + bool m_valid; + + void setValid(bool valid); + + friend class QDBusActionGroup; }; #endif |