Port to new connect api

Change-Id: I603fc2e3fda624c913e432d5059c86d96c3e2c3b
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Montel Laurent
2015-01-29 10:42:16 +01:00
committed by hjk
parent f567565d26
commit c001e98da8
12 changed files with 40 additions and 32 deletions

View File

@@ -57,10 +57,10 @@ DiffEditorGuiController::DiffEditorGuiController(
m_syncScrollBars).toBool();
s->endGroup();
connect(m_controller, SIGNAL(cleared(QString)),
this, SLOT(slotUpdateDiffFileIndex()));
connect(m_controller, SIGNAL(diffFilesChanged(QList<FileData>,QString)),
this, SLOT(slotUpdateDiffFileIndex()));
connect(m_controller, &DiffEditorController::cleared, this,
&DiffEditorGuiController::slotUpdateDiffFileIndex);
connect(m_controller, &DiffEditorController::diffFilesChanged, this,
&DiffEditorGuiController::slotUpdateDiffFileIndex);
slotUpdateDiffFileIndex();
}

View File

@@ -48,8 +48,8 @@ DiffEditorManager::DiffEditorManager(QObject *parent)
m_instance = this;
Core::EditorManager *editorManager = Core::EditorManager::instance();
connect(editorManager, SIGNAL(editorsClosed(QList<Core::IEditor*>)),
this, SLOT(slotEditorsClosed(QList<Core::IEditor*>)));
connect(editorManager, &Core::EditorManager::editorsClosed,
this, &DiffEditorManager::slotEditorsClosed);
}
DiffEditorManager::~DiffEditorManager()

View File

@@ -163,7 +163,7 @@ bool DiffEditorPlugin::initialize(const QStringList &arguments, QString *errorMe
QAction *diffAction = new QAction(tr("Diff..."), this);
Core::Command *diffCommand = Core::ActionManager::registerAction(diffAction,
"DiffEditor.Diff", globalcontext);
connect(diffAction, SIGNAL(triggered()), this, SLOT(diff()));
connect(diffAction, &QAction::triggered, this, &DiffEditorPlugin::diff);
toolsContainer->addAction(diffCommand, Constants::G_TOOLS_DIFF);
addAutoReleasedObject(new DiffEditorFactory(this));

View File

@@ -64,10 +64,10 @@ void DiffEditorReloader::setController(DiffEditorController *controller)
m_controller = controller;
if (m_controller) {
connect(m_controller, SIGNAL(ignoreWhitespaceChanged(bool)),
this, SLOT(requestReload()));
connect(m_controller, SIGNAL(contextLinesNumberChanged(int)),
this, SLOT(requestReload()));
connect(m_controller, &DiffEditorController::ignoreWhitespaceChanged,
this, &DiffEditorReloader::requestReload);
connect(m_controller, &DiffEditorController::contextLinesNumberChanged,
this, &DiffEditorReloader::requestReload);
}
}