From 1cdeaaa97e3e40812e2b0c6f7ed0ad56b98fdd8c Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Fri, 15 May 2020 14:43:07 +0300 Subject: Remove windowmanager deps Bug-AGL: SPEC-3447 Signed-off-by: Marius Vlad Change-Id: Iad417b60fc3b2c4639396d5ed5aaddbd7018e10e --- app/main.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'app/main.cpp') diff --git a/app/main.cpp b/app/main.cpp index 4921bf2..41b5892 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -16,9 +16,10 @@ * limitations under the License. */ - +#include +#include +#include #include -#include #include #include "mixer.hpp" @@ -26,12 +27,12 @@ int main(int argc, char *argv[]) { - AGLApplication app(argc, argv); - app.setApplicationName("Mixer"); - app.setupApplicationRole("mixer"); + QGuiApplication app(argc, argv); + app.setDesktopFileName("mixer"); + QQmlApplicationEngine engine; qmlRegisterType("Mixer", 1, 0, "Mixer"); - app.load(QUrl(QStringLiteral("qrc:/Mixer.qml"))); + engine.load(QUrl(QStringLiteral("qrc:/Mixer.qml"))); return app.exec(); } -- cgit 1.2.3-korg