mirror of
https://github.com/QuasarApp/Hanoi-Towers.git
synced 2025-04-27 18:24:31 +00:00
use a new activity handler
This commit is contained in:
parent
8e14b711cd
commit
e85959099c
@ -12,6 +12,7 @@
|
||||
#include <QQmlApplicationEngine>
|
||||
#include <QQmlComponent>
|
||||
#include <QQmlContext>
|
||||
#include "activityhandler.h"
|
||||
#include "hanoitowers.h"
|
||||
#include <QTranslator>
|
||||
#include <qmlnotifyservice.h>
|
||||
@ -51,6 +52,12 @@ int main(int argc, char *argv[])
|
||||
return 2;
|
||||
}
|
||||
|
||||
#ifdef Q_OS_ANDROID
|
||||
|
||||
ActivityHandler *activityHandler = new ActivityHandler(&app);
|
||||
engine.rootContext()->setContextProperty(QLatin1String("activityHandler"), activityHandler);
|
||||
#endif
|
||||
|
||||
root->setContextProperty("backEnd", &back);
|
||||
root->setContextProperty("OnlineStatusQml", QVariant::fromValue(OnlineStatusQml{}));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user