Core: Remove slot-by-name reference

Replace by lambda.

Change-Id: I50a4a8b6db9790d06b3f60f5de7691b85f54995c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Orgad Shaneh
2017-03-18 22:21:21 +02:00
committed by Orgad Shaneh
parent e9296db573
commit b2c74838e2
6 changed files with 19 additions and 17 deletions

View File

@@ -287,10 +287,9 @@ void MacroManager::startMacro()
QString executeShortcut = Core::ActionManager::command(Constants::EXECUTE_LAST_MACRO)->keySequence().toString();
QString help = tr("Macro mode. Type \"%1\" to stop recording and \"%2\" to play the macro.")
.arg(endShortcut).arg(executeShortcut);
Core::EditorManager::showEditorStatusBar(
QLatin1String(Constants::M_STATUS_BUFFER),
help,
tr("Stop Recording Macro"), this, SLOT(endMacro()));
Core::EditorManager::showEditorStatusBar(Constants::M_STATUS_BUFFER, help,
tr("Stop Recording Macro"),
this, [this] { endMacro(); });
}
void MacroManager::endMacro()

View File

@@ -56,8 +56,6 @@ public:
void executeLastMacro();
void saveLastMacro();
bool executeMacro(const QString &name);
public slots:
void endMacro();
protected: