diff options
Diffstat (limited to 'src/plugins/designer')
-rw-r--r-- | src/plugins/designer/qtcreatorintegration.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/designer/qtcreatorintegration.cpp b/src/plugins/designer/qtcreatorintegration.cpp index c11756674c..5460377554 100644 --- a/src/plugins/designer/qtcreatorintegration.cpp +++ b/src/plugins/designer/qtcreatorintegration.cpp @@ -550,8 +550,11 @@ bool QtCreatorIntegration::navigateToSlot(const QString &objectName, CppTools::CppRefactoringChanges refactoring(docTable); CppTools::SymbolFinder symbolFinder; - if (symbolFinder.findMatchingDefinition(fun, docTable, true)) + if (const Function *funImpl = symbolFinder.findMatchingDefinition(fun, docTable, true)) { + Core::EditorManager::openEditorAt(QString::fromUtf8(funImpl->fileName()), + funImpl->line() + 2); return true; + } const QString implFilePath = CppTools::correspondingHeaderOrSource(declFilePath); const CppTools::InsertionLocation location = CppTools::insertLocationForMethodDefinition (fun, false, CppTools::NamespaceHandling::CreateMissing, refactoring, implFilePath); |