Files
qt-creator/doc/examples/batteryindicator/main.cpp
Leena Miettinen bbcebf266b Doc - update Battery Indicator example
Use the new mobile project wizard to create the application.
Update example files and screen shots.

Reviewed-by: ckamm
Reviewed-by: Niels Weber
2010-10-08 16:27:19 +02:00

24 lines
394 B
C++

#include "mainwindow.h"
#include <QtGui/QApplication>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MainWindow mainWindow;
mainWindow.setOrientation(MainWindow::Auto);
//! [0]
#ifdef Q_OS_SYMBIAN
mainWindow.showFullScreen();
#elif defined(Q_WS_MAEMO_5)
mainWindow.showMaximized();
#else
mainWindow.show();
#endif
//! [0]
return app.exec();
}