--- a/QTfrontend/ui/widget/drawmapwidget.cpp Fri Apr 27 00:43:48 2012 +0400
+++ b/QTfrontend/ui/widget/drawmapwidget.cpp Fri Apr 27 22:15:08 2012 +0400
@@ -55,6 +55,7 @@
m_scene = scene;
ui->graphicsView->setScene(scene);
+ connect(scene, SIGNAL(pathChanged()), this, SLOT(pathChanged()));
}
void DrawMapWidget::resizeEvent(QResizeEvent * event)
@@ -113,6 +114,11 @@
}
}
+void DrawMapWidget::pathChanged()
+{
+ ui->lblPoints->setNum(m_scene->pointsCount());
+}
+
DrawMapView::DrawMapView(QWidget *parent) :