diff --git a/GraphicsView/demo/Polygon/Polygon_2.cpp b/GraphicsView/demo/Polygon/Polygon_2.cpp index 08ec5d37d3f..3e4da1b7ba6 100644 --- a/GraphicsView/demo/Polygon/Polygon_2.cpp +++ b/GraphicsView/demo/Polygon/Polygon_2.cpp @@ -97,7 +97,7 @@ public slots: void clearOffset(); void clear(); - void open(const QString&); + virtual void open(QString); signals: void changed(); }; @@ -108,6 +108,8 @@ MainWindow::MainWindow() { setupUi(this); + this->graphicsView->setAcceptDrops(false); + // Add a GraphicItem for the Polygon_2 pgi = new CGAL::Qt::PolygonGraphicsItem(&poly); @@ -218,7 +220,7 @@ MainWindow::on_actionLoadPolygon_triggered() } void -MainWindow::open(const QString& fileName) +MainWindow::open(QString fileName) { this->actionCreateInputPolygon->setChecked(false); std::ifstream ifs(qPrintable(fileName));