Macros: Use Qt5-style connects

The heavy lifting was done by clazy.

Change-Id: I0154e09c1a9e028f3a80772c4c07751f4e282091
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Orgad Shaneh
2016-05-29 00:20:16 +03:00
committed by Orgad Shaneh
parent 34a7ff07b7
commit 8641a5e956
9 changed files with 28 additions and 54 deletions

View File

@@ -56,11 +56,11 @@ static quint8 COUNT = 5;
TextEditorMacroHandler::TextEditorMacroHandler():
IMacroHandler()
{
const QObject *editorManager = Core::EditorManager::instance();
connect(editorManager, SIGNAL(currentEditorChanged(Core::IEditor*)),
this, SLOT(changeEditor(Core::IEditor*)));
connect(editorManager, SIGNAL(editorAboutToClose(Core::IEditor*)),
this, SLOT(closeEditor(Core::IEditor*)));
Core::EditorManager *editorManager = Core::EditorManager::instance();
connect(editorManager, &Core::EditorManager::currentEditorChanged,
this, &TextEditorMacroHandler::changeEditor);
connect(editorManager, &Core::EditorManager::editorAboutToClose,
this, &TextEditorMacroHandler::closeEditor);
}
void TextEditorMacroHandler::startRecording(Macro *macro)