QTfrontend/drawmapscene.cpp
changeset 7321 57bd4f201401
parent 7298 a5f2fa95e711
child 9080 9b42757d7e71
equal deleted inserted replaced
7319:c4705bca9f21 7321:57bd4f201401
   134     }
   134     }
   135 }
   135 }
   136 
   136 
   137 void DrawMapScene::showCursor()
   137 void DrawMapScene::showCursor()
   138 {
   138 {
   139     qDebug() << "show cursor";
       
   140     if(!m_isCursorShown)
   139     if(!m_isCursorShown)
   141         addItem(m_cursor);
   140         addItem(m_cursor);
   142 
   141 
   143     m_isCursorShown = true;
   142     m_isCursorShown = true;
   144 }
   143 }
   145 
   144 
   146 void DrawMapScene::hideCursor()
   145 void DrawMapScene::hideCursor()
   147 {
   146 {
   148     qDebug() << "hide cursor";
       
   149     if(m_isCursorShown)
   147     if(m_isCursorShown)
   150         removeItem(m_cursor);
   148         removeItem(m_cursor);
   151 
   149 
   152     m_isCursorShown = false;
   150     m_isCursorShown = false;
   153 }
   151 }