diff options
Diffstat (limited to 'libqmenumodel/src/unitymenuaction.h')
-rw-r--r-- | libqmenumodel/src/unitymenuaction.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libqmenumodel/src/unitymenuaction.h b/libqmenumodel/src/unitymenuaction.h index 7c19fc5..b8391fe 100644 --- a/libqmenumodel/src/unitymenuaction.h +++ b/libqmenumodel/src/unitymenuaction.h @@ -46,12 +46,6 @@ public: bool isEnabled() const; bool isValid() const; -public Q_SLOTS: - void onAdded(bool enabled, const QVariant &state); - void onRemoved(); - void onEnabledChanged(bool enabled); - void onStateChanged(const QVariant &state); - Q_SIGNALS: Q_INVOKABLE void activate(const QVariant& parameter = QVariant()); Q_INVOKABLE void changeState(const QVariant& parameter); @@ -62,6 +56,13 @@ Q_SIGNALS: void enabledChanged(bool enabled); void validChanged(bool valid); +protected: + virtual bool event(QEvent* e); + + void setState(const QVariant& state); + void setEnabled(bool enabled); + void setValid(bool valid); + private: void unregisterAction(); void registerAction(); |