From 32c2d35f9986d9576302caee83cbc46e5e6c84a1 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Fri, 13 Aug 2010 15:04:14 +0000 Subject: [PATCH] Add drag and drop --- .../demo/Segment_Delaunay_graph_2/Segment_voronoi_2.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/GraphicsView/demo/Segment_Delaunay_graph_2/Segment_voronoi_2.cpp b/GraphicsView/demo/Segment_Delaunay_graph_2/Segment_voronoi_2.cpp index 0f8763c28bd..dd472baa3a4 100644 --- a/GraphicsView/demo/Segment_Delaunay_graph_2/Segment_voronoi_2.cpp +++ b/GraphicsView/demo/Segment_Delaunay_graph_2/Segment_voronoi_2.cpp @@ -84,16 +84,12 @@ private: } protected slots: -void open(QString); + virtual void open(QString); public slots: void processInput(CGAL::Object o); - // void on_actionShowDelaunay_toggled(bool checked); - - // void on_actionShowConstraints_toggled(bool checked); - void on_actionInsertPolyline_toggled(bool checked); void on_actionClear_triggered(); @@ -121,6 +117,8 @@ MainWindow::MainWindow() { setupUi(this); + this->graphicsView->setAcceptDrops(false); + // Add a GraphicItem for the SVD triangulation sdggi = new CGAL::Qt::SegmentDelaunayGraphGraphicsItem(&svd); QColor segmentColor(::Qt::blue);