summaryrefslogtreecommitdiff
path: root/qmapwatchlet
diff options
context:
space:
mode:
Diffstat (limited to 'qmapwatchlet')
-rw-r--r--qmapwatchlet/mapview.cpp10
-rw-r--r--qmapwatchlet/mapview.h2
2 files changed, 11 insertions, 1 deletions
diff --git a/qmapwatchlet/mapview.cpp b/qmapwatchlet/mapview.cpp
index 7e78d15..ce0e2b4 100644
--- a/qmapwatchlet/mapview.cpp
+++ b/qmapwatchlet/mapview.cpp
@@ -95,6 +95,16 @@ void MapView::setUpdateInterval(int msec)
}
}
+bool MapView::decolor() const
+{
+ return _decolor;
+}
+
+void MapView::setDecolor(bool decolor)
+{
+ _decolor = decolor;
+}
+
qreal MapView::zoomLevel() const
{
if (_mapData) {
diff --git a/qmapwatchlet/mapview.h b/qmapwatchlet/mapview.h
index caa2730..93d8691 100644
--- a/qmapwatchlet/mapview.h
+++ b/qmapwatchlet/mapview.h
@@ -36,7 +36,7 @@ public:
void setUpdateInterval(int msec);
bool decolor() const;
- void setDecolor(bool decolor) const;
+ void setDecolor(bool decolor);
qreal zoomLevel() const;
void setZoomLevel(qreal level);