forked from qt-creator/qt-creator
CppEditor: "Follow Symbol Under Cursor" for virtual functions
F2 on a virtual function call presents a list of overrides in derived classes. The function declaration of the static type is shown immediately at the top. Task-number: QTCREATORBUG-9611 Change-Id: I80ce906fa06272dc9fbd1662cd17500b8c77067f Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
@@ -1047,16 +1047,16 @@ void BaseTextEditorWidget::unindent()
|
||||
|
||||
void BaseTextEditorWidget::openLinkUnderCursor()
|
||||
{
|
||||
Link symbolLink = findLinkAt(textCursor());
|
||||
|
||||
openLink(symbolLink, alwaysOpenLinksInNextSplit());
|
||||
const bool openInNextSplit = alwaysOpenLinksInNextSplit();
|
||||
Link symbolLink = findLinkAt(textCursor(), true, openInNextSplit);
|
||||
openLink(symbolLink, openInNextSplit);
|
||||
}
|
||||
|
||||
void BaseTextEditorWidget::openLinkUnderCursorInNextSplit()
|
||||
{
|
||||
Link symbolLink = findLinkAt(textCursor());
|
||||
|
||||
openLink(symbolLink, !alwaysOpenLinksInNextSplit());
|
||||
const bool openInNextSplit = !alwaysOpenLinksInNextSplit();
|
||||
Link symbolLink = findLinkAt(textCursor(), true, openInNextSplit);
|
||||
openLink(symbolLink, openInNextSplit);
|
||||
}
|
||||
|
||||
void BaseTextEditorWidget::abortAssist()
|
||||
@@ -4803,7 +4803,7 @@ void BaseTextEditorWidget::reindent(QTextDocument *doc, const QTextCursor &curso
|
||||
d->m_indenter->reindent(doc, cursor, tabSettings());
|
||||
}
|
||||
|
||||
BaseTextEditorWidget::Link BaseTextEditorWidget::findLinkAt(const QTextCursor &, bool)
|
||||
BaseTextEditorWidget::Link BaseTextEditorWidget::findLinkAt(const QTextCursor &, bool, bool)
|
||||
{
|
||||
return Link();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user