diff options
Diffstat (limited to 'examples/animation/stickman/main.cpp')
-rw-r--r-- | examples/animation/stickman/main.cpp | 8 |
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); |