diff options
author | Daniel Molkentin <daniel.molkentin@nokia.com> | 2011-11-22 18:18:37 (GMT) |
---|---|---|
committer | Daniel Molkentin <daniel.molkentin@nokia.com> | 2011-11-22 18:34:17 (GMT) |
commit | 0f4a61a33942744b1609c2b375d28765a215e39f (patch) | |
tree | d0b0ec8707aa553dbedb37869b9c48373dd84817 /demos/declarative | |
parent | 7eed617cf248e923e7b2ee49d842d5f7b2fb7816 (diff) | |
download | Qt-0f4a61a33942744b1609c2b375d28765a215e39f.zip Qt-0f4a61a33942744b1609c2b375d28765a215e39f.tar.gz Qt-0f4a61a33942744b1609c2b375d28765a215e39f.tar.bz2 |
Add note to declarative calculator example
This example is not meant to be executed without qmlviewer, yet most
of it works. Add a warning for the uninitiated.
Reviewed-by: trustme
Diffstat (limited to 'demos/declarative')
-rw-r--r-- | demos/declarative/calculator/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/demos/declarative/calculator/main.cpp b/demos/declarative/calculator/main.cpp index 4d29e0b..f477867 100644 --- a/demos/declarative/calculator/main.cpp +++ b/demos/declarative/calculator/main.cpp @@ -40,11 +40,17 @@ #include "qmlapplicationviewer.h" #include <QtGui/QApplication> +#include <QtCore/QDebug> Q_DECL_EXPORT int main(int argc, char *argv[]) { QApplication app(argc, argv); + qDebug() << "NOTE: The runtime property and the Orientation enum are only available" + << "through qmlviewer and are not available in the complied version.\n" + << "Run 'qmlviewer calculator.qmlproject' or load 'calculator.qmlproject'" + << "in Qt Creator and run the project."; + QmlApplicationViewer viewer; viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape); viewer.setMainQmlFile(QLatin1String("qml/calculator/calculator.qml")); |