Add drag and drop

This commit is contained in:
Andreas Fabri 2010-08-13 15:04:14 +00:00
parent 7e02bcebfe
commit 32c2d35f99
1 changed files with 3 additions and 5 deletions

View File

@ -84,16 +84,12 @@ private:
} }
protected slots: protected slots:
void open(QString); virtual void open(QString);
public slots: public slots:
void processInput(CGAL::Object o); 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_actionInsertPolyline_toggled(bool checked);
void on_actionClear_triggered(); void on_actionClear_triggered();
@ -121,6 +117,8 @@ MainWindow::MainWindow()
{ {
setupUi(this); setupUi(this);
this->graphicsView->setAcceptDrops(false);
// Add a GraphicItem for the SVD triangulation // Add a GraphicItem for the SVD triangulation
sdggi = new CGAL::Qt::SegmentDelaunayGraphGraphicsItem<SVD>(&svd); sdggi = new CGAL::Qt::SegmentDelaunayGraphGraphicsItem<SVD>(&svd);
QColor segmentColor(::Qt::blue); QColor segmentColor(::Qt::blue);