From e998eb3e738ff4f0d04be5ade27efe50f2caa5e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Heli=20Hyv=C3=A4ttinen?= Date: Tue, 19 Jul 2011 16:04:16 +0300 Subject: [PATCH] The app is now fullscreen --- mainwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); } -- 1.7.9.5