forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
34a7ff07b7
commit
8641a5e956
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user