From b3e0adf4766da9eee846baec76acae7c6267ba1c Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Thu, 19 Nov 2015 16:41:11 +0100 Subject: [PATCH] VcsBase: Use Qt5-style connects The bulk of the heavy lifting was done by clazy Change-Id: I3d8904d3c5d22aecf5e5baefacc4dd9b77371417 Reviewed-by: Orgad Shaneh --- src/plugins/vcsbase/submiteditorwidget.cpp | 2 +- src/plugins/vcsbase/vcsbaseeditor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/vcsbase/submiteditorwidget.cpp b/src/plugins/vcsbase/submiteditorwidget.cpp index 380525e1d14..65c245a14c4 100644 --- a/src/plugins/vcsbase/submiteditorwidget.cpp +++ b/src/plugins/vcsbase/submiteditorwidget.cpp @@ -477,7 +477,7 @@ void SubmitEditorWidget::diffActivated(const QModelIndex &index) // We need to delay the signal, otherwise, the diff editor will not // be in the foreground. d->m_activatedRow = index.row(); - QTimer::singleShot(0, this, SLOT(diffActivatedDelayed())); + QTimer::singleShot(0, this, &SubmitEditorWidget::diffActivatedDelayed); } void SubmitEditorWidget::updateActions() diff --git a/src/plugins/vcsbase/vcsbaseeditor.cpp b/src/plugins/vcsbase/vcsbaseeditor.cpp index cb1c238aba2..aeea85cd5c6 100644 --- a/src/plugins/vcsbase/vcsbaseeditor.cpp +++ b/src/plugins/vcsbase/vcsbaseeditor.cpp @@ -1395,7 +1395,7 @@ void VcsBaseEditorWidget::setCommand(VcsCommand *command) d->m_progressIndicator->attachToWidget(this); connect(d->m_command.data(), &VcsCommand::finished, this, &VcsBaseEditorWidget::hideProgressIndicator); - QTimer::singleShot(100, this, SLOT(showProgressIndicator())); + QTimer::singleShot(100, this, &VcsBaseEditorWidget::showProgressIndicator); } }