QTfrontend/ui/widget/drawmapwidget.cpp
changeset 6935 472ed92c4173
parent 6934 14a230552c2e
child 6952 7f70f37bbf08
--- 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) :