aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
diff options
context:
space:
mode:
authorFawzi Mohamed <[email protected]>2022-06-20 12:35:13 +0200
committerTim Jenssen <[email protected]>2022-07-13 17:13:23 +0000
commitfd89043de2f8de1588ee61514170e0168e13e238 (patch)
tree8a9dedc64d065bc8c5a076607421adf636c0177a /src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
parent0bb272d41112dcdc3a92c8b6320294c415d630e5 (diff)
qmljs: (QString -> Utils::FilePath)++
convert more QString containing paths to Utils::FilePath Change-Id: I1219d7d147993e48cfa641dc9bea72ab38c90f51 Reviewed-by: Tim Jenssen <[email protected]> Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: <[email protected]>
Diffstat (limited to 'src/plugins/qmlprojectmanager/qmlprojectplugin.cpp')
-rw-r--r--src/plugins/qmlprojectmanager/qmlprojectplugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
index e06f0016db9..cd8698fc999 100644
--- a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
+++ b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
@@ -171,8 +171,8 @@ bool QmlProjectPlugin::checkIfEditorIsuiQml(Core::IEditor *editor)
&& (editor->document()->id() == QmlJSEditor::Constants::C_QMLJSEDITOR_ID
|| editor->document()->id() == QmlJSEditor::Constants::C_QTQUICKDESIGNEREDITOR_ID)) {
QmlJS::ModelManagerInterface *modelManager = QmlJS::ModelManagerInterface::instance();
- QmlJS::Document::Ptr document =
- modelManager->ensuredGetDocumentForPath(editor->document()->filePath().toString());
+ QmlJS::Document::Ptr document = modelManager->ensuredGetDocumentForPath(
+ editor->document()->filePath());
if (!document.isNull())
return document->language() == QmlJS::Dialect::QmlQtQuick2Ui;
}