Commit e0f702b5 authored by Lukáš Tinkl's avatar Lukáš Tinkl
Browse files

don't hardcode QML path

use QStandardPaths
parent 4217fe38
......@@ -71,9 +71,10 @@ int main(int argc, char *argv[])
}
} else {
qmlRegisterType<ConnectionEditor>("ConnectionEditor", 0, 1, "ConnectionEditor");
// FIXME
QQmlApplicationEngine * engine = new QQmlApplicationEngine("/opt/kde5/share/kde-nm-connection-editor/qml/main.qml");
QString qmlPath = QStandardPaths::locate(QStandardPaths::GenericDataLocation,
QLatin1String("kde-nm-connection-editor/qml/main.qml"),
QStandardPaths::LocateFile);
QQmlApplicationEngine * engine = new QQmlApplicationEngine(qmlPath);
}
return app.exec();
......
Markdown is supported
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