aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/glsleditor
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2021-04-22 16:15:26 +0200
committerEike Ziller <eike.ziller@qt.io>2021-04-26 08:03:47 +0000
commitc1f90aeca2a921397c36f53fd8d6a834b79e0b0d (patch)
treeb32416613d15ad3cfe201e8ed4c08ce882f838c2 /src/plugins/glsleditor
parentb2c05547333444859941b584f3f30c9cfac6815a (diff)
ICore: Change some path API to use FilePath
Change-Id: Id841d6177206a021c9e606ce560b47d1ae6e52b9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/glsleditor')
-rw-r--r--src/plugins/glsleditor/glsleditorplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/glsleditor/glsleditorplugin.cpp b/src/plugins/glsleditor/glsleditorplugin.cpp
index ca953fc90f..d96c1ef082 100644
--- a/src/plugins/glsleditor/glsleditorplugin.cpp
+++ b/src/plugins/glsleditor/glsleditorplugin.cpp
@@ -84,7 +84,7 @@ void GlslEditorPlugin::InitFile::initialize() const
const int variant = GLSL::Lexer::Variant_All;
QByteArray code;
- QFile file(ICore::resourcePath() + "/glsl/" + m_fileName);
+ QFile file(ICore::resourcePath().pathAppended("glsl").pathAppended(m_fileName).toString());
if (file.open(QFile::ReadOnly))
code = file.readAll();