From c1f90aeca2a921397c36f53fd8d6a834b79e0b0d Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Thu, 22 Apr 2021 16:15:26 +0200 Subject: ICore: Change some path API to use FilePath Change-Id: Id841d6177206a021c9e606ce560b47d1ae6e52b9 Reviewed-by: Qt CI Bot Reviewed-by: hjk --- src/plugins/texteditor/highlighter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/texteditor/highlighter.cpp') 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()); } -- cgit v1.2.3