Review, updating functional tests map_center_point
authorSami Rämö <sami.ramo@ixonos.com>
Tue, 24 Aug 2010 13:12:49 +0000 (16:12 +0300)
committerSami Rämö <sami.ramo@ixonos.com>
Tue, 24 Aug 2010 13:12:49 +0000 (16:12 +0300)
 - Reviewed by Jussi Laitinen

doc/testing/functionality-tests.doc
src/map/mapview.cpp
src/map/mapview.h

index 0bac792..3f073b5 100644 (file)
Binary files a/doc/testing/functionality-tests.doc and b/doc/testing/functionality-tests.doc differ
index a211e10..30ff47f 100644 (file)
@@ -81,7 +81,7 @@ MapView::~MapView()
     delete m_scrollAndZoomAnimation;
 }
 
-QPointF MapView::center()
+QPointF MapView::center() const
 {
     return mapToScene(m_viewCenterPoint) - m_centerHorizontalShiftPoint;
 }
index 520a369..6715fa6 100644 (file)
@@ -178,7 +178,7 @@ private:
     *
     * @returns Center point
     */
-    QPointF center();
+    QPointF center() const;
 
     /**
     * @brief Set new view scale