diff options
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(); |