VCS: Use Qt5 connect for annotate

Connect directly to the editor widget, which has a strong type.

Change-Id: I4d9778bc4a3c8ba1b37c5a5c0286fd72cda135de
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2016-11-26 22:13:18 +02:00
committed by Orgad Shaneh
parent 5832f52cee
commit 414f49ea19
10 changed files with 5 additions and 40 deletions

View File

@@ -156,11 +156,7 @@ VcsBaseEditor::VcsBaseEditor()
void VcsBaseEditor::finalizeInitialization()
{
auto widget = qobject_cast<VcsBaseEditorWidget *>(editorWidget());
QTC_ASSERT(widget, return);
// Pass on signals.
connect(widget, &VcsBaseEditorWidget::annotateRevisionRequested,
this, &VcsBaseEditor::annotateRevisionRequested);
QTC_CHECK(qobject_cast<VcsBaseEditorWidget *>(editorWidget()));
}
// ----------- VcsBaseEditorPrivate