equal
deleted
inserted
replaced
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 } |