From a1e14b1e532d76bf6ef4da7680b4f2807442cf96 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Fri, 15 May 2020 13:48:38 +0300 Subject: Remove windowmanager depends Bug-AGL: SPEC-3447 Signed-off-by: Marius Vlad Change-Id: I3e8f8897396616f269fb9a8b1c3ffafd027159a5 --- app/main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'app/main.cpp') diff --git a/app/main.cpp b/app/main.cpp index d1486c5..2eef1b0 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -15,20 +15,20 @@ * limitations under the License. */ -#include +#include #include #include +#include #include #include "translator.h" int main(int argc, char *argv[]) { - AGLApplication app(argc, argv); - app.setApplicationName("Dashboard"); - app.setupApplicationRole("dashboard"); + QGuiApplication app(argc, argv); + app.setDesktopFileName("dashboard"); - QQmlApplicationEngine *engine = app.getQmlApplicationEngine(); - QQmlContext *context = engine->rootContext(); + QQmlApplicationEngine engine; + QQmlContext *context = engine.rootContext(); QVariant v = context->contextProperty(QStringLiteral("bindingAddress")); if(v.canConvert(QMetaType::QUrl)) { QUrl bindingAddress = v.toUrl(); @@ -37,7 +37,7 @@ int main(int argc, char *argv[]) qCritical("Cannot find bindingAddress property in context, SignalComposer unavailable"); } qmlRegisterType("Translator", 1, 0, "Translator"); - app.load(QUrl(QStringLiteral("qrc:/Dashboard.qml"))); + engine.load(QUrl(QStringLiteral("qrc:/Dashboard.qml"))); return app.exec(); } -- cgit 1.2.3-korg