forked from qt-creator/qt-creator
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:
@@ -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()
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user