Logo
Explore Help
Sign In
feedc0de/qt-creator
1
0
Fork 0
You've already forked qt-creator
forked from qt-creator/qt-creator
Code Pull Requests Activity
Files
b51e17c5cc0100358f646a7fc4326b7e98ddd083
qt-creator/share/qtcreator/templates/mobileapp/main.cpp

15 lines
291 B
C++
Raw Normal View History

Mobile wizard: Model after QML wizard. Nodded-at-by: dt
2010-09-13 11:20:13 +02:00
#include "mainwindow.h"
#include <QtGui/QApplication>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MainWindow mainWindow;
Changing template/qmljsdbg-lib as suggested in QTCREATORBUG-2885 - Renaming the screen orientation enum and keys - Explicit constructors - Virtual destructors - Renamed some occurences of 'Qml' in comments to 'QML' - Adding descriptive comments to all generated files which should not be touched by the user. - Adding missing license headers to the qmljsdebugger sources Task-Number: QTCREATORBUG-2885 Reviewed-by: Friedemann Kleint Reviewed-by: dt
2010-11-01 17:03:46 +01:00
mainWindow.setOrientation(MainWindow::ScreenOrientationAuto); // ORIENTATION
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
mainWindow.showExpanded();
Mobile wizard: Model after QML wizard. Nodded-at-by: dt
2010-09-13 11:20:13 +02:00
return app.exec();
}
Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 39ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API