summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-05-15 14:43:07 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-06-24 18:13:10 +0300
commit1cdeaaa97e3e40812e2b0c6f7ed0ad56b98fdd8c (patch)
treebca933e6157a669dc59c69e1b65b264914ad67d0 /app/main.cpp
parent4d2c81532462b8054fac05d7638f1eef2eca787c (diff)
Remove windowmanager deps
Bug-AGL: SPEC-3447 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Iad417b60fc3b2c4639396d5ed5aaddbd7018e10e
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp13
1 files changed, 7 insertions, 6 deletions
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 <QGuiApplication>
+#include <QtGui/QGuiApplication>
+#include <QtQml/QQmlContext>
#include <QtQml/QQmlApplicationEngine>
-#include <QtAGLExtras/AGLApplication>
#include <QtQml/qqml.h>
#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>("Mixer", 1, 0, "Mixer");
- app.load(QUrl(QStringLiteral("qrc:/Mixer.qml")));
+ engine.load(QUrl(QStringLiteral("qrc:/Mixer.qml")));
return app.exec();
}