QTfrontend/drawmapscene.h
changeset 6934 14a230552c2e
parent 6873 30840365af0a
child 6935 472ed92c4173
--- a/QTfrontend/drawmapscene.h	Thu Apr 26 09:48:52 2012 +0200
+++ b/QTfrontend/drawmapscene.h	Fri Apr 27 00:43:48 2012 +0400
@@ -21,6 +21,7 @@
 
 #include <QGraphicsScene>
 #include <QPainterPath>
+#include <QGraphicsEllipseItem>
 
 class QGraphicsPathItem;
 
@@ -50,6 +51,8 @@
         void clearMap();
         void simplifyLast();
         void setErasing(bool erasing);
+        void showCursor();
+        void hideCursor();
 
     private:
         QPen m_pen;
@@ -60,6 +63,8 @@
         Paths oldPaths;
         bool m_isErasing;
         QList<QGraphicsItem *> oldItems;
+        QGraphicsEllipseItem * m_cursor;
+        bool m_isCursorShown;
 
         virtual void mouseMoveEvent(QGraphicsSceneMouseEvent * mouseEvent);
         virtual void mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent);