diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-17 02:29:28 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-17 02:29:28 +0200 |
commit | 9c44782c5eab5635ca6adf4717409bf2ffb6c694 (patch) | |
tree | 99f774bccb6e964864168b346155bbd5a52bf3b2 /libsowatch/graphicswatchlet.h | |
parent | f9ac9d207025fb8d40d1be753cde78beb77aa202 (diff) | |
download | sowatch-9c44782c5eab5635ca6adf4717409bf2ffb6c694.tar.gz sowatch-9c44782c5eab5635ca6adf4717409bf2ffb6c694.zip |
new nekowatchlet and minor graphics/performance changes
Diffstat (limited to 'libsowatch/graphicswatchlet.h')
-rw-r--r-- | libsowatch/graphicswatchlet.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libsowatch/graphicswatchlet.h b/libsowatch/graphicswatchlet.h index 34f69cb..24413da 100644 --- a/libsowatch/graphicswatchlet.h +++ b/libsowatch/graphicswatchlet.h @@ -13,6 +13,8 @@ namespace sowatch class SOWATCH_EXPORT GraphicsWatchlet : public Watchlet { Q_OBJECT + Q_PROPERTY(bool fullUpdateMode READ fullUpdateMode WRITE setFullUpdateMode) + public: explicit GraphicsWatchlet(WatchServer* server, const QString& id); ~GraphicsWatchlet(); @@ -20,6 +22,9 @@ public: QGraphicsScene* scene(); void setScene(QGraphicsScene* scene); + bool fullUpdateMode() const; + void setFullUpdateMode(bool fullUpdateMode); + QRectF sceneRect() const; QRect viewportRect() const; @@ -38,6 +43,7 @@ private slots: void frameTimeout(); private: + bool _fullUpdateMode; QRegion _damaged; }; |