VcsBase: Use Qt5-style connects

The bulk of the heavy lifting was done by clazy

Change-Id: I3d8904d3c5d22aecf5e5baefacc4dd9b77371417
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2015-11-19 16:41:11 +01:00
parent 83c26bf290
commit b3e0adf476
2 changed files with 2 additions and 2 deletions

View File

@@ -477,7 +477,7 @@ void SubmitEditorWidget::diffActivated(const QModelIndex &index)
// We need to delay the signal, otherwise, the diff editor will not // We need to delay the signal, otherwise, the diff editor will not
// be in the foreground. // be in the foreground.
d->m_activatedRow = index.row(); d->m_activatedRow = index.row();
QTimer::singleShot(0, this, SLOT(diffActivatedDelayed())); QTimer::singleShot(0, this, &SubmitEditorWidget::diffActivatedDelayed);
} }
void SubmitEditorWidget::updateActions() void SubmitEditorWidget::updateActions()

View File

@@ -1395,7 +1395,7 @@ void VcsBaseEditorWidget::setCommand(VcsCommand *command)
d->m_progressIndicator->attachToWidget(this); d->m_progressIndicator->attachToWidget(this);
connect(d->m_command.data(), &VcsCommand::finished, connect(d->m_command.data(), &VcsCommand::finished,
this, &VcsBaseEditorWidget::hideProgressIndicator); this, &VcsBaseEditorWidget::hideProgressIndicator);
QTimer::singleShot(100, this, SLOT(showProgressIndicator())); QTimer::singleShot(100, this, &VcsBaseEditorWidget::showProgressIndicator);
} }
} }