summaryrefslogtreecommitdiffstats
path: root/examples/script
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2010-12-02 09:18:27 (GMT)
committerKent Hansen <kent.hansen@nokia.com>2010-12-02 09:18:27 (GMT)
commit8f56e42ed665b90e084239a0560fc9c9688d0c3b (patch)
tree8192d1d1a4b92e9c2cd5ab15afef908b528e59d2 /examples/script
parent46de147d71f18dbf81617781ee3056fa9549e553 (diff)
downloadQt-8f56e42ed665b90e084239a0560fc9c9688d0c3b.zip
Qt-8f56e42ed665b90e084239a0560fc9c9688d0c3b.tar.gz
Qt-8f56e42ed665b90e084239a0560fc9c9688d0c3b.tar.bz2
Make QtScript examples compile
Assumptions were made that "#include <QtScript>" would pull in the necessary QtCore headers as well, but we shouldn't rely on that.
Diffstat (limited to 'examples/script')
-rw-r--r--examples/script/customclass/main.cpp2
-rw-r--r--examples/script/helloscript/main.cpp3
2 files changed, 5 insertions, 0 deletions
diff --git a/examples/script/customclass/main.cpp b/examples/script/customclass/main.cpp
index cc79d6e..a9e8ba9 100644
--- a/examples/script/customclass/main.cpp
+++ b/examples/script/customclass/main.cpp
@@ -38,6 +38,8 @@
**
****************************************************************************/
+#include <QCoreApplication>
+#include <QtDebug>
#include <QtScript>
#include "bytearrayclass.h"
diff --git a/examples/script/helloscript/main.cpp b/examples/script/helloscript/main.cpp
index 3013e7c..6eac741 100644
--- a/examples/script/helloscript/main.cpp
+++ b/examples/script/helloscript/main.cpp
@@ -39,8 +39,11 @@
****************************************************************************/
#include <QApplication>
+#include <QFile>
#include <QMessageBox>
#include <QPushButton>
+#include <QTextStream>
+#include <QTranslator>
#include <QtScript>
//! [0]