mirror of https://github.com/CGAL/cgal
Add drag and drop
This commit is contained in:
parent
c13e015b8a
commit
7e02bcebfe
|
|
@ -82,7 +82,7 @@ public slots:
|
||||||
|
|
||||||
void on_actionRecenter_triggered();
|
void on_actionRecenter_triggered();
|
||||||
|
|
||||||
void open(const QString& fileName);
|
virtual void open(QString fileName);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void changed();
|
void changed();
|
||||||
|
|
@ -94,6 +94,8 @@ MainWindow::MainWindow()
|
||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
|
this->graphicsView->setAcceptDrops(false);
|
||||||
|
|
||||||
// Add a GraphicItem for the Delaunay triangulation
|
// Add a GraphicItem for the Delaunay triangulation
|
||||||
dgi = new CGAL::Qt::TriangulationGraphicsItem<Delaunay>(&dt);
|
dgi = new CGAL::Qt::TriangulationGraphicsItem<Delaunay>(&dt);
|
||||||
|
|
||||||
|
|
@ -319,7 +321,7 @@ MainWindow::on_actionLoadPoints_triggered()
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
MainWindow::open(const QString& fileName)
|
MainWindow::open(QString fileName)
|
||||||
{
|
{
|
||||||
// wait cursor
|
// wait cursor
|
||||||
QApplication::setOverrideCursor(Qt::WaitCursor);
|
QApplication::setOverrideCursor(Qt::WaitCursor);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue