summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/aglextras/hmi/aglapplication.cpp5
-rw-r--r--src/aglextras/hmi/aglapplication.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/aglextras/hmi/aglapplication.cpp b/src/aglextras/hmi/aglapplication.cpp
index cd7eb38..112e110 100644
--- a/src/aglextras/hmi/aglapplication.cpp
+++ b/src/aglextras/hmi/aglapplication.cpp
@@ -94,6 +94,11 @@ AGLApplication::load (const QString &filePath)
d->engine->load(filePath);
}
+QQmlApplicationEngine*
+AGLApplication::getQmlApplicationEngine() const {
+ return d_ptr->engine;
+}
+
int
AGLApplication::exec (void)
{
diff --git a/src/aglextras/hmi/aglapplication.h b/src/aglextras/hmi/aglapplication.h
index babf4de..fbc031c 100644
--- a/src/aglextras/hmi/aglapplication.h
+++ b/src/aglextras/hmi/aglapplication.h
@@ -19,10 +19,13 @@
#define AGLAPPLICATION_H
#include <QtAGLExtras/aglextrasglobal.h>
+
#include <QSharedPointer>
#include <QtGui/QGuiApplication>
+class QQmlApplicationEngine;
+
QT_BEGIN_NAMESPACE
class AGLApplicationPrivate;
class AGLEXTRAS_EXPORT AGLApplication : public QGuiApplication
@@ -37,6 +40,8 @@ public:
void load (const QUrl &url);
void load (const QString &filePath);
+ QQmlApplicationEngine* getQmlApplicationEngine() const;
+
int exec (void);
private: