summaryrefslogtreecommitdiff
path: root/qmapwatchlet/mapview.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-14 01:13:41 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-14 01:13:41 +0200
commit80c58c124caf17f670d8efc120f5ae4bfd9aa09f (patch)
treec6d036f06437e54f80afd65e1a700a018cab994b /qmapwatchlet/mapview.h
parentc3392e5d539e87f4720b3d107aaefffdc9579f4d (diff)
downloadsowatch-80c58c124caf17f670d8efc120f5ae4bfd9aa09f.tar.gz
sowatch-80c58c124caf17f670d8efc120f5ae4bfd9aa09f.zip
added liveview watchlet menu (API break)
Diffstat (limited to 'qmapwatchlet/mapview.h')
-rw-r--r--qmapwatchlet/mapview.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/qmapwatchlet/mapview.h b/qmapwatchlet/mapview.h
index efd4ea5..caa2730 100644
--- a/qmapwatchlet/mapview.h
+++ b/qmapwatchlet/mapview.h
@@ -21,6 +21,7 @@ class MapView : public QDeclarativeItem
Q_OBJECT
Q_PROPERTY(bool updateEnabled READ updateEnabled WRITE setUpdateEnabled NOTIFY updateEnabledChanged)
Q_PROPERTY(int updateInterval READ updateInterval WRITE setUpdateInterval NOTIFY updateIntervalChanged)
+ Q_PROPERTY(bool decolor READ decolor WRITE setDecolor NOTIFY decolorChanged)
Q_PROPERTY(qreal zoomLevel READ zoomLevel WRITE setZoomLevel NOTIFY zoomLevelChanged)
Q_PROPERTY(QString currentLocationName READ currentLocationName NOTIFY currentLocationNameChanged)
@@ -34,6 +35,9 @@ public:
int updateInterval() const;
void setUpdateInterval(int msec);
+ bool decolor() const;
+ void setDecolor(bool decolor) const;
+
qreal zoomLevel() const;
void setZoomLevel(qreal level);
@@ -49,6 +53,7 @@ signals:
void updateIntervalChanged();
void zoomLevelChanged();
void currentLocationNameChanged();
+ void decolorChanged();
protected:
void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry);
@@ -61,6 +66,7 @@ private slots:
private:
bool _enabled;
+ bool _decolor;
QImage _arrow;
QGeoMapData *_mapData;
QGeoPositionInfoSource *_posSource;