summaryrefslogtreecommitdiffstats
path: root/examples/animation/stickman
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-02 14:50:58 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-02 14:55:51 (GMT)
commit3e741a2e9f8adb26c1b1d7ef5d80c40669ad3350 (patch)
tree5810fba65d0ae52895ad4647e136507b454a846e /examples/animation/stickman
parent8b52b03577321946c8b597f29c294c6aab978c49 (diff)
downloadQt-3e741a2e9f8adb26c1b1d7ef5d80c40669ad3350.zip
Qt-3e741a2e9f8adb26c1b1d7ef5d80c40669ad3350.tar.gz
Qt-3e741a2e9f8adb26c1b1d7ef5d80c40669ad3350.tar.bz2
Don't show example fullscreen on desktop
Reviewed-by: Jason Barron
Diffstat (limited to 'examples/animation/stickman')
-rw-r--r--examples/animation/stickman/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/animation/stickman/main.cpp b/examples/animation/stickman/main.cpp
index 8fafd94..872ef6f 100644
--- a/examples/animation/stickman/main.cpp
+++ b/examples/animation/stickman/main.cpp
@@ -82,13 +82,13 @@ int main(int argc, char **argv)
view->setRenderHints(QPainter::Antialiasing);
view->setTransformationAnchor(QGraphicsView::NoAnchor);
view->setScene(scene);
- view->showFullScreen();
- view->setFocus();
+ view->show();
+ view->setFocus();
view->setSceneRect(scene->sceneRect());
-
+
LifeCycle *cycle = new LifeCycle(stickMan, view);
cycle->setDeathAnimation(":/animations/dead");
-
+
cycle->addActivity(":/animations/jumping", Qt::Key_J);
cycle->addActivity(":/animations/dancing", Qt::Key_D);
cycle->addActivity(":/animations/chilling", Qt::Key_C);