diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-11 16:10:50 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-11 16:10:50 +0200 |
commit | bc899047089079dde323e84a57efe46ce6af653d (patch) | |
tree | c88ef2bc6d1876518b285db15e5a400c6c4795a4 /metawatch | |
parent | 4b5bbdea7bdb6defc88023ba65f7aec1a7439977 (diff) | |
download | sowatch-bc899047089079dde323e84a57efe46ce6af653d.tar.gz sowatch-bc899047089079dde323e84a57efe46ce6af653d.zip |
add the liveview paint engine
Diffstat (limited to 'metawatch')
-rw-r--r-- | metawatch/metawatch.cpp | 2 | ||||
-rw-r--r-- | metawatch/metawatchpaintengine.cpp | 5 | ||||
-rw-r--r-- | metawatch/metawatchpaintengine.h | 5 |
3 files changed, 5 insertions, 7 deletions
diff --git a/metawatch/metawatch.cpp b/metawatch/metawatch.cpp index 32e8707..c7e0db3 100644 --- a/metawatch/metawatch.cpp +++ b/metawatch/metawatch.cpp @@ -117,7 +117,7 @@ MetaWatch::~MetaWatch() QPaintEngine* MetaWatch::paintEngine() const { if (!_paintEngine) { - _paintEngine = new MetaWatchPaintEngine(const_cast<MetaWatch*>(this)); + _paintEngine = new MetaWatchPaintEngine; } return _paintEngine; diff --git a/metawatch/metawatchpaintengine.cpp b/metawatch/metawatchpaintengine.cpp index 33f9490..cf41783 100644 --- a/metawatch/metawatchpaintengine.cpp +++ b/metawatch/metawatchpaintengine.cpp @@ -3,9 +3,8 @@ using namespace sowatch; -MetaWatchPaintEngine::MetaWatchPaintEngine(MetaWatch* watch) : - WatchPaintEngine(), - _watch(watch) +MetaWatchPaintEngine::MetaWatchPaintEngine() + : WatchPaintEngine() { } diff --git a/metawatch/metawatchpaintengine.h b/metawatch/metawatchpaintengine.h index ec5cf86..06cbdc1 100644 --- a/metawatch/metawatchpaintengine.h +++ b/metawatch/metawatchpaintengine.h @@ -1,9 +1,8 @@ #ifndef METAWATCHPAINTENGINE_H #define METAWATCHPAINTENGINE_H -#include <QtCore/QRect> +#include <sowatch.h> #include "metawatch.h" -#include "watchpaintengine.h" namespace sowatch { @@ -12,7 +11,7 @@ namespace sowatch class MetaWatchPaintEngine : public WatchPaintEngine { public: - explicit MetaWatchPaintEngine(MetaWatch* watch); + MetaWatchPaintEngine(); bool begin(QPaintDevice *pdev); bool end(); |