aboutsummaryrefslogtreecommitdiffstats
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 320aa17..986448a 100644
--- a/src/aglextras/hmi/aglapplication.cpp
+++ b/src/aglextras/hmi/aglapplication.cpp
@@ -95,6 +95,11 @@ AGLApplication::load (const QString &filePath)
d_ptr->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 f9d17a0..9c08972 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: