summaryrefslogtreecommitdiff
path: root/metawatch
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-11 16:10:50 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-11 16:10:50 +0200
commitbc899047089079dde323e84a57efe46ce6af653d (patch)
treec88ef2bc6d1876518b285db15e5a400c6c4795a4 /metawatch
parent4b5bbdea7bdb6defc88023ba65f7aec1a7439977 (diff)
downloadsowatch-bc899047089079dde323e84a57efe46ce6af653d.tar.gz
sowatch-bc899047089079dde323e84a57efe46ce6af653d.zip
add the liveview paint engine
Diffstat (limited to 'metawatch')
-rw-r--r--metawatch/metawatch.cpp2
-rw-r--r--metawatch/metawatchpaintengine.cpp5
-rw-r--r--metawatch/metawatchpaintengine.h5
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();