mirror of https://github.com/CGAL/cgal
simplify connection
This commit is contained in:
parent
f61b088576
commit
0ff77b2751
|
|
@ -227,8 +227,9 @@ MainWindow::MainWindow(const QStringList &keywords, bool verbose, QWidget* paren
|
||||||
connect(scene, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex & )),
|
connect(scene, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex & )),
|
||||||
this, SLOT(updateInfo()));
|
this, SLOT(updateInfo()));
|
||||||
|
|
||||||
connect(scene, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex & )),
|
connect(scene, &Scene::dataChanged,
|
||||||
this, SLOT(filterOperations()));
|
this, [this]() { filterOperations(false); });
|
||||||
|
|
||||||
|
|
||||||
connect(scene, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex & )),
|
connect(scene, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex & )),
|
||||||
this, SLOT(updateDisplayInfo()));
|
this, SLOT(updateDisplayInfo()));
|
||||||
|
|
|
||||||
|
|
@ -366,7 +366,6 @@ protected Q_SLOTS:
|
||||||
//!Hides not available operations and show available operations in all the
|
//!Hides not available operations and show available operations in all the
|
||||||
//!menus.
|
//!menus.
|
||||||
void filterOperations(bool hide);
|
void filterOperations(bool hide);
|
||||||
void filterOperations(){ filterOperations(false); };
|
|
||||||
//!Updates the bounding box and moves the camera to fits the scene.
|
//!Updates the bounding box and moves the camera to fits the scene.
|
||||||
void recenterScene();
|
void recenterScene();
|
||||||
//!Resizes the header of the scene view
|
//!Resizes the header of the scene view
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue