diff options
Diffstat (limited to 'declarativewatchwrapper.h')
-rw-r--r-- | declarativewatchwrapper.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/declarativewatchwrapper.h b/declarativewatchwrapper.h index 09e0923..5f78e75 100644 --- a/declarativewatchwrapper.h +++ b/declarativewatchwrapper.h @@ -12,21 +12,24 @@ class DeclarativeWatchlet; class DeclarativeWatchWrapper : public QObject { Q_OBJECT - Q_PROPERTY(QString model READ model NOTIFY modelChanged) + Q_PROPERTY(QString model READ model CONSTANT) + Q_PROPERTY(bool active READ active NOTIFY activeChanged) public: explicit DeclarativeWatchWrapper(Watch *watch, QObject *parent = 0); Q_INVOKABLE QString model() const; + Q_INVOKABLE bool active() const; signals: void buttonPressed(int button); void buttonReleased(int button); - void modelChanged(); + void activeChanged(); protected: Watch* _watch; + bool _active; void activate(); void deactivate(); |