Polls for screen locked status
[ghostsoverboard] / seaview.cpp
index a0496f3..55cc504 100644 (file)
@@ -29,7 +29,7 @@ SeaView::SeaView(QWidget *parent) :
     QGraphicsView(parent)
 {
 
-    setWindowIcon(QIcon(":/pix/laiva_3aave.png"));
+
     setWindowTitle("Ghosts Overboard");
 
     pScene_ = new SeaScene ();
@@ -39,8 +39,11 @@ SeaView::SeaView(QWidget *parent) :
 
 
     connect(this,SIGNAL(screenTapped()),pScene_,SLOT(handleScreenTapped()));
-    connect(this,SIGNAL(goingBackgroung()),pScene_,SLOT(forcePause()));
-    connect(this,SIGNAL(goingForeground()),pScene_,SLOT(softContinue()));
+    connect(this,SIGNAL(goingBackgroung()),pScene_,SLOT(turnPauseOn()));
+//    connect(this,SIGNAL(goingForeground()),pScene_,SLOT(softContinue()));
+
+    connect(pScene_,SIGNAL(minimizeRequested()),this,SLOT(showNormal()));
+    connect(pScene_,SIGNAL(fullscreenRequested()),this,SLOT(showFullScreen()));
 
     showFullScreen();
 
@@ -114,3 +117,4 @@ void SeaView::initializeBoundaries()
 
     pScene_->restartLevel();
 }
+