changed [=,this] to [this]

This commit is contained in:
Vishal Pratap Singh 2020-10-12 23:36:23 +05:30 committed by GitHub
parent f889663188
commit 0c1c37bf3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 14 deletions

View File

@ -259,15 +259,10 @@ MainWindow::MainWindow(const QStringList &keywords, bool verbose, QWidget* paren
SIGNAL(selectionChanged ( const QItemSelection & , const QItemSelection & ) ),
this, SLOT(selectionChanged()));
// setup menu filtering
#ifndef CGAL_CXX20
connect(sceneView->selectionModel(),
QOverload<const QItemSelection & , const QItemSelection &>::of(&QItemSelectionModel::selectionChanged),
this, [=](){filterOperations(false);});
#else
connect(sceneView->selectionModel(),
QOverload<const QItemSelection & , const QItemSelection &>::of(&QItemSelectionModel::selectionChanged),
this, [=,this](){filterOperations(false);});
#endif
QOverload<const QItemSelection & , const QItemSelection &>::of(&QItemSelectionModel::selectionChanged),
this, [this](){filterOperations(false);});
sceneView->setContextMenuPolicy(Qt::CustomContextMenu);
connect(sceneView, SIGNAL(customContextMenuRequested(const QPoint & )),
@ -371,13 +366,8 @@ MainWindow::MainWindow(const QStringList &keywords, bool verbose, QWidget* paren
operationSearchBar.setPlaceholderText("Filter...");
searchAction->setDefaultWidget(&operationSearchBar);
#ifndef CGAL_CXX20
connect(&operationSearchBar, &QLineEdit::textChanged,
this, [=](){filterOperations(true);});
#else
connect(&operationSearchBar, &QLineEdit::textChanged,
this, [=,this](){filterOperations(true);});
#endif
this, [this](){filterOperations(true);});
loadPlugins();
accepted_keywords.clear();