Commit 2aa08418 authored by Laurent Montel's avatar Laurent Montel
Browse files

Fix search xmlgui files

parent 48dbe12a
Pipeline #247847 passed with stage
in 2 minutes and 56 seconds
......@@ -169,8 +169,8 @@ KNotesApp::KNotesApp(QWidget *parent)
// get the most recent XML UI file
QString xmlFileName(componentName() + QLatin1String("ui.rc"));
#pragma message("port QT5")
QString filter(QLatin1String("kxmlgui5/knotes/") + xmlFileName); // QT5 = componentData().componentName() + QLatin1Char('/') + xmlFileName;
QString filter(QStringLiteral("kxmlgui" QT_STRINGIFY(QT_VERSION_MAJOR) "/knotes/")
+ xmlFileName); // QT5 = componentData().componentName() + QLatin1Char('/') + xmlFileName;
const QStringList fileList = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, filter)
+ QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, xmlFileName); // QT5 =
#pragma message("port QT5")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment