diff options
author | Orgad Shaneh <[email protected]> | 2016-11-26 22:13:18 +0200 |
---|---|---|
committer | Orgad Shaneh <[email protected]> | 2016-11-28 09:39:38 +0000 |
commit | 414f49ea19ec2398b56c5aa9eb5706035c1c782b (patch) | |
tree | 210d4512d16e0d8b4595b4b93ad10f5d0877b1f5 /src/plugins/cvs/cvsplugin.cpp | |
parent | 5832f52ceefb9ee19842af4513ae00ee7d311e31 (diff) |
VCS: Use Qt5 connect for annotate
Connect directly to the editor widget, which has a strong type.
Change-Id: I4d9778bc4a3c8ba1b37c5a5c0286fd72cda135de
Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/cvs/cvsplugin.cpp')
-rw-r--r-- | src/plugins/cvs/cvsplugin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/cvs/cvsplugin.cpp b/src/plugins/cvs/cvsplugin.cpp index c697b0427ea..c3b4238efea 100644 --- a/src/plugins/cvs/cvsplugin.cpp +++ b/src/plugins/cvs/cvsplugin.cpp @@ -1166,11 +1166,10 @@ IEditor *CvsPlugin::showOutputInEditor(const QString& title, const QString &outp const Id id = params->id; QString s = title; IEditor *editor = EditorManager::openEditorWithContents(id, &s, output.toUtf8()); - connect(editor, SIGNAL(annotateRevisionRequested(QString,QString,QString,int)), - this, SLOT(vcsAnnotate(QString,QString,QString,int))); CvsEditorWidget *e = qobject_cast<CvsEditorWidget*>(editor->widget()); if (!e) return 0; + connect(e, &VcsBaseEditorWidget::annotateRevisionRequested, this, &CvsPlugin::annotate); s.replace(QLatin1Char(' '), QLatin1Char('_')); e->textDocument()->setFallbackSaveAsFileName(s); e->setForceReadOnly(true); |