equal
deleted
inserted
replaced
121 void DrawMapWidget::setErasing(bool erasing) |
121 void DrawMapWidget::setErasing(bool erasing) |
122 { |
122 { |
123 if(m_scene) m_scene->setErasing(erasing); |
123 if(m_scene) m_scene->setErasing(erasing); |
124 } |
124 } |
125 |
125 |
|
126 void DrawMapWidget::setPathType(DrawMapScene::PathType pathType) |
|
127 { |
|
128 if(m_scene) m_scene->setPathType(pathType); |
|
129 } |
|
130 |
126 void DrawMapWidget::save(const QString & fileName) |
131 void DrawMapWidget::save(const QString & fileName) |
127 { |
132 { |
128 if(m_scene) |
133 if(m_scene) |
129 { |
134 { |
130 QFile file(fileName); |
135 QFile file(fileName); |
190 m_scene = scene; |
195 m_scene = scene; |
191 |
196 |
192 QGraphicsView::setScene(scene); |
197 QGraphicsView::setScene(scene); |
193 } |
198 } |
194 |
199 |
195 // Why don't I ever recieve this event? |
200 // Why don't I ever receive this event? |
196 void DrawMapView::enterEvent(QEvent *event) |
201 void DrawMapView::enterEvent(QEvent *event) |
197 { |
202 { |
198 if(m_scene) |
203 if(m_scene) |
199 m_scene->showCursor(); |
204 m_scene->showCursor(); |
200 |
205 |