forked from qt-creator/qt-creator
Core: Rename ActionBuilder::setOn* to addOn*
There could be multiple connections. Change-Id: I7dbca9d24599f776b7d1f1bfa11826e3eeb5640a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -280,7 +280,7 @@ void FindPrivate::setupMenu()
|
||||
openFindDialog.bindContextAction(&m_openFindDialog);
|
||||
openFindDialog.setDefaultKeySequence(Tr::tr("Ctrl+Shift+F"));
|
||||
openFindDialog.addToContainer(Constants::M_FIND_ADVANCED);
|
||||
openFindDialog.setOnTriggered(this, [] { Find::openFindDialog(nullptr); });
|
||||
openFindDialog.addOnTriggered(this, [] { Find::openFindDialog(nullptr); });
|
||||
}
|
||||
|
||||
static QString filterActionName(const IFindFilter *filter)
|
||||
@@ -304,7 +304,7 @@ void FindPrivate::setupFilterMenuItems()
|
||||
findScope.setDefaultKeySequence(filter->defaultShortcut());
|
||||
findScope.setCommandAttribute(Command::CA_UpdateText);
|
||||
findScope.addToContainer(Constants::M_FIND_ADVANCED);
|
||||
findScope.setOnTriggered(this, [filter] { Find::openFindDialog(filter); });
|
||||
findScope.addOnTriggered(this, [filter] { Find::openFindDialog(filter); });
|
||||
|
||||
QAction *findScopeAction = findScope.contextAction();
|
||||
connect(filter, &IFindFilter::enabledChanged, this, [filter, findScopeAction] {
|
||||
|
||||
Reference in New Issue
Block a user