aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/highlighter.cpp
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/texteditor/highlighter.cpp
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/texteditor/highlighter.cpp')
-rw-r--r--src/plugins/texteditor/highlighter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/highlighter.cpp b/src/plugins/texteditor/highlighter.cpp
index 51e1a307f1..5e770078b2 100644
--- a/src/plugins/texteditor/highlighter.cpp
+++ b/src/plugins/texteditor/highlighter.cpp
@@ -59,7 +59,7 @@ KSyntaxHighlighting::Repository *highlightRepository()
if (!repository) {
repository = new KSyntaxHighlighting::Repository();
repository->addCustomSearchPath(TextEditorSettings::highlighterSettings().definitionFilesPath());
- QDir dir(Core::ICore::resourcePath() + QLatin1String("/generic-highlighter/syntax"));
+ QDir dir(Core::ICore::resourcePath().pathAppended("generic-highlighter/syntax").toDir());
if (dir.exists() && dir.cdUp())
repository->addCustomSearchPath(dir.path());
}