forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user