diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-02-02 00:37:38 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2015-02-13 13:14:03 +0000 |
commit | 88e7f935f4adbccaf0ffe7e03a3adec8143cf614 (patch) | |
tree | f1c309b5b16f6f240bf7ee175fef3a6d49f05d11 /src/plugins/designer/qtcreatorintegration.cpp | |
parent | 033a628cdcd47fe90bf78b7a31e71991371ea86b (diff) | |
download | qt-creator-88e7f935f4adbccaf0ffe7e03a3adec8143cf614.tar.gz |
ProjectExplorer: Use FileName for Node::path
Change-Id: I4a41cfb629be8bb06b4b0616cd4475525e617a51
Reviewed-by: BogDan Vatra <bogdan@kde.org>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/designer/qtcreatorintegration.cpp')
-rw-r--r-- | src/plugins/designer/qtcreatorintegration.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/designer/qtcreatorintegration.cpp b/src/plugins/designer/qtcreatorintegration.cpp index 11bef27858..1ed02b4ffa 100644 --- a/src/plugins/designer/qtcreatorintegration.cpp +++ b/src/plugins/designer/qtcreatorintegration.cpp @@ -513,16 +513,17 @@ bool QtCreatorIntegration::navigateToSlot(const QString &objectName, { typedef QMap<int, Document::Ptr> DocumentMap; - const QString currentUiFile = FormEditorW::activeEditor()->document()->filePath().toString(); + const Utils::FileName currentUiFile = FormEditorW::activeEditor()->document()->filePath(); #if 0 - return Designer::Internal::navigateToSlot(currentUiFile, objectName, signalSignature, parameterNames, errorMessage); + return Designer::Internal::navigateToSlot(currentUiFile.toString(), objectName, + signalSignature, parameterNames, errorMessage); #endif // TODO: we should pass to findDocumentsIncluding an absolute path to generated .h file from ui. // Currently we are guessing the name of ui_<>.h file and pass the file name only to the findDocumentsIncluding(). // The idea is that the .pro file knows if the .ui files is inside, and the .pro file knows it will // be generating the ui_<>.h file for it, and the .pro file knows what the generated file's name and its absolute path will be. // So we should somehow get that info from project manager (?) - const QFileInfo fi(currentUiFile); + const QFileInfo fi = currentUiFile.toFileInfo(); const QString uiFolder = fi.absolutePath(); const QString uicedName = QLatin1String("ui_") + fi.completeBaseName() + QLatin1String(".h"); @@ -532,7 +533,7 @@ bool QtCreatorIntegration::navigateToSlot(const QString &objectName, const Project *uiProject = SessionManager::projectForFile(currentUiFile); if (uiProject) { for (Snapshot::const_iterator i = docTable.begin(), ei = docTable.end(); i != ei; ++i) { - const Project *project = SessionManager::projectForFile(i.key().toString()); + const Project *project = SessionManager::projectForFile(i.key()); if (project == uiProject) newDocTable.insert(i.value()); } |