/[projects]/infoscreen/mainview.cpp
ViewVC logotype

Diff of /infoscreen/mainview.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1209 by torben, Fri Jun 25 07:17:40 2010 UTC revision 1210 by torben, Mon Jan 3 20:56:54 2011 UTC
# Line 43  MainView::MainView(QWidget* parent) Line 43  MainView::MainView(QWidget* parent)
43          readLocalFiles();          readLocalFiles();
44      }      }
45    
46      this->resize(400,400);      this->resize(640,480);
47      this->setWindowState( Qt::WindowFullScreen );      this->setWindowState( Qt::WindowFullScreen );
48      this->grabKeyboard();      this->grabKeyboard();
49    
# Line 157  void MainView::keyPressEvent ( QKeyEvent Line 157  void MainView::keyPressEvent ( QKeyEvent
157      if (key == ' ' || key == Qt::Key_Return || key == Qt::Key_Enter) {      if (key == ' ' || key == Qt::Key_Return || key == Qt::Key_Enter) {
158          close();          close();
159      }      }
160    
161        if (key == 'f' || key == 'F') {
162            Qt::WindowStates current = this->windowState();
163            if (current == Qt::WindowFullScreen) {
164                this->setWindowState(Qt::WindowActive);
165            } else {
166                this->setWindowState(Qt::WindowFullScreen);
167            }
168        }
169    
170  }    }  
171    
172  void MainView::onTimer()  void MainView::onTimer()

Legend:
Removed from v.1209  
changed lines
  Added in v.1210

  ViewVC Help
Powered by ViewVC 1.1.20