Files
qt-creator/share/qtcreator/templates/mobileapp/main.cpp
Alessandro Portale 2a7336b4d6 Move hide implementation of conditional show()
...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
2010-11-01 19:19:32 +01:00

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();
}