tools/drawMapTest/mainwindow.cpp
changeset 4477 63a21fac8bf7
parent 4458 7351e6f1ee28
--- a/tools/drawMapTest/mainwindow.cpp	Mon Dec 06 21:15:41 2010 -0500
+++ b/tools/drawMapTest/mainwindow.cpp	Tue Dec 07 22:02:09 2010 +0300
@@ -11,7 +11,8 @@
     ui->setupUi(this);
 
     scene = new DrawMapScene(this);
-    ui->graphicsView->setScene(scene);
+    //ui->graphicsView->setScene(scene);
+    ui->drawMapWidget->setScene(scene);
 
     connect(ui->pbUndo, SIGNAL(clicked()), scene, SLOT(undo()));
     connect(scene, SIGNAL(pathChanged()), this, SLOT(scene_pathChanged()));
@@ -34,14 +35,6 @@
     }
 }
 
-void MainWindow::resizeEvent(QResizeEvent * event)
-{
-    Q_UNUSED(event);
-
-    if(ui->graphicsView)
-        ui->graphicsView->fitInView(ui->graphicsView->scene()->sceneRect(), Qt::KeepAspectRatio);
-}
-
 void MainWindow::scene_pathChanged()
 {
     QString str = scene->encode().toBase64();
@@ -49,11 +42,6 @@
     ui->sbBytes->setValue(str.size());
 }
 
-void MainWindow::on_pbSimplify_clicked()
-{
-    scene->simplifyLast();
-}
-
 void MainWindow::on_pbSave_clicked()
 {
     QString fileName = QFileDialog::getSaveFileName(this, tr("Save map"), ".");