Added MouseEventSpy as base for an auto shutdown
This commit is contained in:
parent
d251120275
commit
420a5ee428
4 changed files with 79 additions and 2 deletions
|
|
@ -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"));
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue