simplify connection

This commit is contained in:
Sébastien Loriot 2021-11-24 11:08:37 +01:00
parent f61b088576
commit 0ff77b2751
2 changed files with 3 additions and 3 deletions

View File

@ -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()));

View File

@ -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