diff options
author | 2020-05-15 13:48:38 +0300 | |
---|---|---|
committer | 2020-06-12 15:22:53 +0300 | |
commit | 3c6dc7e27b2e5642af9c9451bb33d69f108f85bb (patch) | |
tree | 1ead817c74b75bb1dd3e7b5ef0162aab0e0cac2d /app/main.cpp | |
parent | 8b4d23f03c7acf3bb61f3b579ab5b3ea062b0f7a (diff) |
Remove windowmanager depends
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Diffstat (limited to 'app/main.cpp')
-rw-r--r-- | app/main.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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 <QtAGLExtras/AGLApplication> +#include <QGuiApplication> #include <QtQml/QQmlApplicationEngine> #include <QtQml/QQmlContext> +#include <QtGui/QGuiApplication> #include <signalcomposer.h> #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>("Translator", 1, 0, "Translator"); - app.load(QUrl(QStringLiteral("qrc:/Dashboard.qml"))); + engine.load(QUrl(QStringLiteral("qrc:/Dashboard.qml"))); return app.exec(); } |