diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-02 14:50:58 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-02 14:55:51 (GMT) |
commit | 3e741a2e9f8adb26c1b1d7ef5d80c40669ad3350 (patch) | |
tree | 5810fba65d0ae52895ad4647e136507b454a846e /examples | |
parent | 8b52b03577321946c8b597f29c294c6aab978c49 (diff) | |
download | Qt-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')
-rw-r--r-- | examples/animation/stickman/main.cpp | 8 | ||||
-rw-r--r-- | examples/script/context2d/main.cpp | 3 |
2 files changed, 5 insertions, 6 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); diff --git a/examples/script/context2d/main.cpp b/examples/script/context2d/main.cpp index a61452a..c9a8898 100644 --- a/examples/script/context2d/main.cpp +++ b/examples/script/context2d/main.cpp @@ -48,7 +48,6 @@ int main(int argc, char **argv) QApplication app(argc, argv); Window win; - //win.show(); - win.showFullScreen(); + win.show(); return app.exec(); } |