diff options
author | Eike Ziller <eike.ziller@digia.com> | 2013-07-09 11:52:44 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2013-07-12 11:55:59 +0200 |
commit | 354cd410b09091c1fe63b96388d49c60639b035f (patch) | |
tree | 60e6c89777e6171c025c20b605cd7a605270edec /src/plugins/cpptools/cpptoolsplugin.cpp | |
parent | 7b1941c792ca67a4760e461baaddb804d5d3993c (diff) | |
download | qt-creator-354cd410b09091c1fe63b96388d49c60639b035f.tar.gz |
Make document model static and add some document related methods
Change-Id: Ibcb863e67a2433529c9d2b6dec237f9d8b1d8d50
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp')
-rw-r--r-- | src/plugins/cpptools/cpptoolsplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp index 87f170c675..343ff6c95f 100644 --- a/src/plugins/cpptools/cpptoolsplugin.cpp +++ b/src/plugins/cpptools/cpptoolsplugin.cpp @@ -154,7 +154,7 @@ ExtensionSystem::IPlugin::ShutdownFlag CppToolsPlugin::aboutToShutdown() void CppToolsPlugin::switchHeaderSource() { QString otherFile = correspondingHeaderOrSource( - Core::EditorManager::currentEditor()->document()->filePath()); + Core::EditorManager::currentDocument()->filePath()); if (!otherFile.isEmpty()) Core::EditorManager::openEditor(otherFile); } @@ -162,7 +162,7 @@ void CppToolsPlugin::switchHeaderSource() void CppToolsPlugin::switchHeaderSourceInNextSplit() { QString otherFile = correspondingHeaderOrSource( - Core::EditorManager::currentEditor()->document()->filePath()); + Core::EditorManager::currentDocument()->filePath()); if (!otherFile.isEmpty()) Core::EditorManager::openEditor(otherFile, Core::Id(), Core::EditorManager::OpenInOtherSplit); } |