mainwindow.h 887 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // checksum 0x9a77 version 0x20001
  2. /*
  3. This file was generated by the Mobile Qt Application wizard of Qt Creator.
  4. MainWindow is a convenience class containing mobile device specific code
  5. such as screen orientation handling.
  6. It is recommended not to modify this file, since newer versions of Qt Creator
  7. may offer an updated version of it.
  8. */
  9. #ifndef MAINWINDOW_H
  10. #define MAINWINDOW_H
  11. #include <QtGui/QMainWindow>
  12. namespace Ui {
  13. class MainWindow;
  14. }
  15. class MainWindow : public QMainWindow
  16. {
  17. Q_OBJECT
  18. public:
  19. enum ScreenOrientation {
  20. ScreenOrientationLockPortrait,
  21. ScreenOrientationLockLandscape,
  22. ScreenOrientationAuto
  23. };
  24. explicit MainWindow(QWidget *parent = 0);
  25. virtual ~MainWindow();
  26. void setOrientation(ScreenOrientation orientation);
  27. void showExpanded();
  28. private:
  29. Ui::MainWindow *ui;
  30. };
  31. #endif // MAINWINDOW_H