forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
5832f52cee
commit
414f49ea19
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user