summaryrefslogtreecommitdiff
path: root/libsowatch/graphicswatchlet.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-17 02:29:28 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-17 02:29:28 +0200
commit9c44782c5eab5635ca6adf4717409bf2ffb6c694 (patch)
tree99f774bccb6e964864168b346155bbd5a52bf3b2 /libsowatch/graphicswatchlet.h
parentf9ac9d207025fb8d40d1be753cde78beb77aa202 (diff)
downloadsowatch-9c44782c5eab5635ca6adf4717409bf2ffb6c694.tar.gz
sowatch-9c44782c5eab5635ca6adf4717409bf2ffb6c694.zip
new nekowatchlet and minor graphics/performance changes
Diffstat (limited to 'libsowatch/graphicswatchlet.h')
-rw-r--r--libsowatch/graphicswatchlet.h6
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;
};