summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorDaniel Molkentin <daniel.molkentin@nokia.com>2011-11-22 19:18:37 +0100
committerDaniel Molkentin <daniel.molkentin@nokia.com>2011-11-22 19:34:17 +0100
commit0f4a61a33942744b1609c2b375d28765a215e39f (patch)
treed0b0ec8707aa553dbedb37869b9c48373dd84817 /demos
parent7eed617cf248e923e7b2ee49d842d5f7b2fb7816 (diff)
downloadqt4-tools-0f4a61a33942744b1609c2b375d28765a215e39f.tar.gz
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')
-rw-r--r--demos/declarative/calculator/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/demos/declarative/calculator/main.cpp b/demos/declarative/calculator/main.cpp
index 4d29e0bb4f..f47786755e 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"));