summaryrefslogtreecommitdiffstats
path: root/demos/qtdemo/menumanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'demos/qtdemo/menumanager.h')
-rw-r--r--demos/qtdemo/menumanager.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/demos/qtdemo/menumanager.h b/demos/qtdemo/menumanager.h
index 5e14204..93fb998 100644
--- a/demos/qtdemo/menumanager.h
+++ b/demos/qtdemo/menumanager.h
@@ -45,6 +45,9 @@
#include <QtGui>
#include <QtXml>
#include <QtHelp/QHelpEngineCore>
+#ifndef QT_NO_DECLARATIVE
+#include <QtDeclarative>
+#endif
#include "score.h"
#include "textbutton.h"
@@ -83,13 +86,17 @@ public:
Score *score;
int currentMenuCode;
+ QObject *qmlRoot;
+#ifndef QT_NO_DECLARATIVE
QDeclarativeEngine* declarativeEngine;
- QDeclarativeItem *qmlRoot;
+#endif
private slots:
void exampleFinished();
void exampleError(QProcess::ProcessError error);
+ void quitQML();
+
private:
// singleton pattern:
MenuManager();