aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/modeleditor/jsextension.h
diff options
context:
space:
mode:
authorJochen Becher <jochen_becher@gmx.de>2024-05-05 19:40:09 +0200
committerJochen Becher <jochen_becher@gmx.de>2024-05-10 18:50:22 +0000
commit76f2b6d5e1ec563d144087d0c3eed777876da900 (patch)
treea3ce8d982b7401b8cec76c7ca26957be8e1ec0c6 /src/plugins/modeleditor/jsextension.h
parent99acd3247fa5d92ff4237350d16c32305eb1cd5c (diff)
ModelEditor: Use Utils::FilePath
More replacements of QString with Utils::FilePath and removal of QFileInfo and QDir will follow. Change-Id: Iceec1c009c562bd9a05f9ab1d1a9f83ad48a4467 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/modeleditor/jsextension.h')
-rw-r--r--src/plugins/modeleditor/jsextension.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/modeleditor/jsextension.h b/src/plugins/modeleditor/jsextension.h
index 1cc9c262f29..d9f3484919c 100644
--- a/src/plugins/modeleditor/jsextension.h
+++ b/src/plugins/modeleditor/jsextension.h
@@ -5,6 +5,8 @@
#include <QObject>
+#include <utils/filepath.h>
+
namespace ModelEditor {
namespace Internal {
@@ -15,7 +17,7 @@ class JsExtension : public QObject
public:
JsExtension() {}
- Q_INVOKABLE QString fileNameToElementName(const QString &file);
+ Q_INVOKABLE QString fileNameToElementName(const Utils::FilePath &file);
Q_INVOKABLE QString elementNameToFileName(const QString &element);
};