summaryrefslogtreecommitdiff
path: root/qmapwatchlet
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-14 01:57:34 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-14 01:57:34 +0200
commit9e3eff1c3a2b7105fecf6d0d7f052eb9943fbada (patch)
treee28d75366e004e3865deefb5bcaa2dc8e0d3a773 /qmapwatchlet
parent80c58c124caf17f670d8efc120f5ae4bfd9aa09f (diff)
downloadsowatch-9e3eff1c3a2b7105fecf6d0d7f052eb9943fbada.tar.gz
sowatch-9e3eff1c3a2b7105fecf6d0d7f052eb9943fbada.zip
perform only one bluetooth discovery for all watches
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);