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

Diff of /infoscreen/mainview.cpp

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

revision 902 by torben, Fri Jun 25 07:17:40 2010 UTC revision 2103 by torben, Tue Feb 4 14:16:40 2014 UTC
# Line 5  Line 5 
5  #include <QStackedLayout>  #include <QStackedLayout>
6  #include <QSvgWidget>  #include <QSvgWidget>
7    
8    #include <QDir>
9  #include <QTimer>  #include <QTimer>
10  #include <QKeyEvent>  #include <QKeyEvent>
11  #include <QSettings>  #include <QSettings>
# Line 43  MainView::MainView(QWidget* parent) Line 44  MainView::MainView(QWidget* parent)
44          readLocalFiles();          readLocalFiles();
45      }      }
46    
47      this->resize(400,400);      this->resize(640,480);
48      this->setWindowState( Qt::WindowFullScreen );      this->setWindowState( Qt::WindowFullScreen );
49      this->grabKeyboard();      this->grabKeyboard();
50    
# Line 157  void MainView::keyPressEvent ( QKeyEvent Line 158  void MainView::keyPressEvent ( QKeyEvent
158      if (key == ' ' || key == Qt::Key_Return || key == Qt::Key_Enter) {      if (key == ' ' || key == Qt::Key_Return || key == Qt::Key_Enter) {
159          close();          close();
160      }      }
161    
162        if (key == 'f' || key == 'F') {
163            Qt::WindowStates current = this->windowState();
164            if (current == Qt::WindowFullScreen) {
165                this->setWindowState(Qt::WindowActive);
166            } else {
167                this->setWindowState(Qt::WindowFullScreen);
168            }
169        }
170    
171  }    }  
172    
173  void MainView::onTimer()  void MainView::onTimer()

Legend:
Removed from v.902  
changed lines
  Added in v.2103

  ViewVC Help
Powered by ViewVC 1.1.20