summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/animation/stickman/main.cpp8
-rw-r--r--examples/script/context2d/main.cpp3
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();
}