summaryrefslogtreecommitdiffstats
path: root/examples/animation/states
diff options
context:
space:
mode:
Diffstat (limited to 'examples/animation/states')
-rw-r--r--examples/animation/states/main.cpp4
-rw-r--r--examples/animation/states/states.pro1
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/animation/states/main.cpp b/examples/animation/states/main.cpp
index d49aa415a7..f37c2bdbbf 100644
--- a/examples/animation/states/main.cpp
+++ b/examples/animation/states/main.cpp
@@ -38,7 +38,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
class Pixmap : public QGraphicsObject
{
@@ -69,7 +69,7 @@ public:
{
}
- virtual void resizeEvent(QResizeEvent *event)
+ virtual void resizeEvent(QResizeEvent *)
{
fitInView(sceneRect(), Qt::KeepAspectRatio);
}
diff --git a/examples/animation/states/states.pro b/examples/animation/states/states.pro
index 24d6976334..5c0d28163b 100644
--- a/examples/animation/states/states.pro
+++ b/examples/animation/states/states.pro
@@ -11,4 +11,5 @@ symbian {
TARGET.UID3 = 0xA000E3F8
CONFIG += qt_example
}
+QT += widgets
maemo5: CONFIG += qt_example