aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2011-09-14 11:39:54 +1000
committerQt by Nokia <qt-info@nokia.com>2011-09-15 08:08:51 +0200
commit563b16652cd9cb84646555d6c717a69fb77de366 (patch)
tree7729ef79dad0c5bff9893fcdab9ce90412ae4c8e /examples
parent1dc86cbdc4c4a3ef87571d4e9dfe41cb58fb62ae (diff)
Fixed compile of qtdeclarative examples.
Change-Id: I3a982de8eaf31267a4d90e3cc3bedbf87400d34a Reviewed-on: http://codereview.qt-project.org/4847 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/modelviews/stringlistmodel/main.cpp1
-rw-r--r--examples/declarative/painteditem/smile/main.cpp7
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/modelviews/stringlistmodel/main.cpp b/examples/declarative/modelviews/stringlistmodel/main.cpp
index c69963b89a..1f474c4cc6 100644
--- a/examples/declarative/modelviews/stringlistmodel/main.cpp
+++ b/examples/declarative/modelviews/stringlistmodel/main.cpp
@@ -39,6 +39,7 @@
****************************************************************************/
#include <QApplication>
+#include <QStringList>
#include <qdeclarativeengine.h>
#include <qdeclarativecontext.h>
diff --git a/examples/declarative/painteditem/smile/main.cpp b/examples/declarative/painteditem/smile/main.cpp
index e26c1b47e7..bc3a9d6b03 100644
--- a/examples/declarative/painteditem/smile/main.cpp
+++ b/examples/declarative/painteditem/smile/main.cpp
@@ -38,7 +38,8 @@
**
****************************************************************************/
-#include <QtGui/qapplication.h>
+#include <QApplication>
+#include <QPainter>
#include <QtDeclarative/qdeclarative.h>
#include <QtDeclarative/qsgview.h>
#include <QtDeclarative/qsgpainteditem.h>
@@ -71,9 +72,7 @@ int main(int argc, char ** argv)
qmlRegisterType<MyPaintItem>("MyModule", 1, 0, "MyPaintItem");
- QGLFormat f = QGLFormat::defaultFormat();
- f.setSampleBuffers(true);
- QSGView view(f);
+ QSGView view;
view.setResizeMode(QSGView::SizeRootObjectToView);
view.setSource(QUrl::fromLocalFile("smile.qml"));
view.show();