diff options
Diffstat (limited to 'src/plugins/cppeditor/cppeditor.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppeditor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp index 2f3170161b..7f64a26f10 100644 --- a/src/plugins/cppeditor/cppeditor.cpp +++ b/src/plugins/cppeditor/cppeditor.cpp @@ -58,8 +58,8 @@ #include <cpptools/cppworkingcopy.h> #include <cpptools/symbolfinder.h> -#include <texteditor/basetextdocument.h> -#include <texteditor/basetextdocumentlayout.h> +#include <texteditor/textdocument.h> +#include <texteditor/textdocumentlayout.h> #include <texteditor/codeassist/assistproposalitem.h> #include <texteditor/codeassist/genericproposalmodel.h> #include <texteditor/codeassist/genericproposal.h> @@ -706,7 +706,7 @@ void CppEditorWidget::onFunctionDeclDefLinkFound(QSharedPointer<FunctionDeclDefL d->m_declDefLink = link; IDocument *targetDocument = DocumentModel::documentForFilePath( d->m_declDefLink->targetFile->fileName()); if (textDocument() != targetDocument) { - if (auto textDocument = qobject_cast<TextDocument *>(targetDocument)) + if (auto textDocument = qobject_cast<BaseTextDocument *>(targetDocument)) connect(textDocument, SIGNAL(contentsChanged()), this, SLOT(abortDeclDefLink())); } @@ -741,7 +741,7 @@ void CppEditorWidget::abortDeclDefLink() IDocument *targetDocument = DocumentModel::documentForFilePath(d->m_declDefLink->targetFile->fileName()); if (textDocument() != targetDocument) { - if (auto textDocument = qobject_cast<TextDocument *>(targetDocument)) + if (auto textDocument = qobject_cast<BaseTextDocument *>(targetDocument)) disconnect(textDocument, SIGNAL(contentsChanged()), this, SLOT(abortDeclDefLink())); } |