Added MouseEventSpy as base for an auto shutdown

This commit is contained in:
Anika Raemer 2019-04-03 17:44:46 +02:00
parent d251120275
commit 420a5ee428
4 changed files with 79 additions and 2 deletions

View file

@ -1,6 +1,7 @@
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include "controllers/NavigationController.h"
#include "MouseEventSpy.h"
int main(int argc, char *argv[])
{
@ -28,6 +29,8 @@ int main(int argc, char *argv[])
navController.setContext(engine.rootContext());
navController.init("/home/ar/source/lenaMusic/");
// install MouseEventSpy used for auto shut down of RaspberryPi if not used for a predefined time.
MouseEventSpy::instance();
engine.load(QUrl("qrc:/main.qml"));