diff options
Diffstat (limited to 'qmapwatchlet/mapview.h')
-rw-r--r-- | qmapwatchlet/mapview.h | 6 |
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; |