From: Heli Hyvättinen Date: Tue, 19 Jul 2011 13:04:16 +0000 (+0300) Subject: The app is now fullscreen X-Git-Tag: v0.3.0_fremantle~28 X-Git-Url: http://vcs.maemo.org/git/?p=ghostsoverboard;a=commitdiff_plain;h=e998eb3e738ff4f0d04be5ade27efe50f2caa5e9 The app is now fullscreen --- diff --git a/mainwindow.cpp b/mainwindow.cpp index 0b2c61c..0b199b6 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -53,6 +53,8 @@ MainWindow::MainWindow(QWidget *parent) connect(pView_,SIGNAL(goingBackgroung()),pScene_,SLOT(forcePause())); connect(pView_,SIGNAL(goingForeground()),pScene_,SLOT(softContinue())); + showFullScreen(); + //the boundaries of the scene are set to match the size of the view window, which is not @@ -78,12 +80,12 @@ void MainWindow::initializeBoundaries() // QSize windowsize = pView_->size(); // QRectF rectangle (topleft,windowsize); - QRectF rectangle(0,0,800,424); + QRectF rectangle(0,0,800,480); pScene_->setSceneRect(rectangle); pView_->setSceneRect(rectangle); - // qDebug() << "Initialized boundaries" << rectangle.right() << rectangle.bottom() << pView_->width() << pView_->height(); +// qDebug() << "Initialized boundaries" << rectangle.right() << rectangle.bottom() << pView_->width() << pView_->height(); pScene_->restartLevel(); }