projects
/
ghostsoverboard
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
edf74cd
)
The app is now fullscreen
author
Heli Hyvättinen
<heli.hyvattinen@kymp.net>
Tue, 19 Jul 2011 13:04:16 +0000
(16:04 +0300)
committer
Heli Hyvättinen
<heli.hyvattinen@kymp.net>
Tue, 19 Jul 2011 13:04:16 +0000
(16:04 +0300)
mainwindow.cpp
patch
|
blob
|
history
diff --git
a/mainwindow.cpp
b/mainwindow.cpp
index
0b2c61c
..
0b199b6
100644
(file)
--- 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()));
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
//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);
// 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);
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();
}
pScene_->restartLevel();
}