forked from qt-creator/qt-creator
...and do not call it show(), because that is the signature of a non-virtual base class function. showExpanded() sucks as name, and hjk, who reviewed this is not convinced. But showExpanded() is still better than show(). Task-Number: QTCREATORBUG-2979 Reviewed-By: hjk
39 lines
852 B
C++
39 lines
852 B
C++
/*
|
|
This file was generated by the Mobile Qt Application wizard of Qt Creator.
|
|
MainWindow is a convenience class containing mobile device specific code
|
|
such as screen orientation handling.
|
|
It is recommended not to modify this file, since newer versions of Qt Creator
|
|
may offer an updated version of it.
|
|
*/
|
|
|
|
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QtGui/QMainWindow>
|
|
|
|
namespace Ui {
|
|
class MainWindow;
|
|
}
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
enum ScreenOrientation {
|
|
ScreenOrientationLockPortrait,
|
|
ScreenOrientationLockLandscape,
|
|
ScreenOrientationAuto
|
|
};
|
|
|
|
explicit MainWindow(QWidget *parent = 0);
|
|
virtual ~MainWindow();
|
|
|
|
void setOrientation(ScreenOrientation orientation);
|
|
void showExpanded();
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|