1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef MAINWINDOW_H
- #define MAINWINDOW_H
- #include <QtGui/QMainWindow>
- #include <QTimer>
- namespace Ui {
- class MainWindow;
- }
- class MainWindow : public QMainWindow
- {
- Q_OBJECT
- public:
- enum ScreenOrientation {
- ScreenOrientationLockPortrait,
- ScreenOrientationLockLandscape,
- ScreenOrientationAuto
- };
- explicit MainWindow(QWidget *parent = 0);
- virtual ~MainWindow();
- // Note that this will only have an effect on Symbian and Fremantle.
- void setOrientation(ScreenOrientation orientation);
- void showExpanded();
- public slots:
- void UpdateTime();
- private:
- Ui::MainWindow *ui;
- QTimer m_timer;
- };
- #endif // MAINWINDOW_H
|