From 0f4a61a33942744b1609c2b375d28765a215e39f Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Tue, 22 Nov 2011 19:18:37 +0100 Subject: 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 --- demos/declarative/calculator/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 +#include 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")); -- cgit v0.12