diff options
author | Eike Ziller <eike.ziller@digia.com> | 2013-07-04 13:30:26 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2013-07-09 13:51:42 +0200 |
commit | dd43d9908f3de19e455d5503b311bb3c1ae7b9c4 (patch) | |
tree | df542f655c2380b2026d49a862c727cb0f1d86a0 /src/plugins/cpptools/cpptoolsplugin.cpp | |
parent | cee160225378acbc7d29665bd69f6f793ef78fb9 (diff) | |
download | qt-creator-dd43d9908f3de19e455d5503b311bb3c1ae7b9c4.tar.gz |
Rename IDocument::fileName --> filePath
That is what it actually is, wrt how Qt API calls it.
Change-Id: Ied02055debf6aad75556b0d9d22e8ba2f72be555
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 7f2bdbd24c..87f170c675 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()->fileName()); + Core::EditorManager::currentEditor()->document()->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()->fileName()); + Core::EditorManager::currentEditor()->document()->filePath()); if (!otherFile.isEmpty()) Core::EditorManager::openEditor(otherFile, Core::Id(), Core::EditorManager::OpenInOtherSplit); } |