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
15 lines
291 B
C++
15 lines
291 B
C++
#include "mainwindow.h"
|
|
|
|
#include <QtGui/QApplication>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication app(argc, argv);
|
|
|
|
MainWindow mainWindow;
|
|
mainWindow.setOrientation(MainWindow::ScreenOrientationAuto); // ORIENTATION
|
|
mainWindow.showExpanded();
|
|
|
|
return app.exec();
|
|
}
|