forked from qt-creator/qt-creator
		
	Use the new mobile project wizard to create the application. Update example files and screen shots. Reviewed-by: ckamm Reviewed-by: Niels Weber
		
			
				
	
	
		
			24 lines
		
	
	
		
			394 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			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();
 | 
						|
}
 |