--- infoscreen/mainview.cpp 2010/06/25 07:17:40 902 +++ infoscreen/mainview.cpp 2014/02/04 14:16:40 2103 @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -43,7 +44,7 @@ readLocalFiles(); } - this->resize(400,400); + this->resize(640,480); this->setWindowState( Qt::WindowFullScreen ); this->grabKeyboard(); @@ -157,6 +158,16 @@ if (key == ' ' || key == Qt::Key_Return || key == Qt::Key_Enter) { close(); } + + if (key == 'f' || key == 'F') { + Qt::WindowStates current = this->windowState(); + if (current == Qt::WindowFullScreen) { + this->setWindowState(Qt::WindowActive); + } else { + this->setWindowState(Qt::WindowFullScreen); + } + } + } void MainView::onTimer()