Clean up StocQt demo
authorAlan Alpert <alan.alpert@nokia.com>
Tue, 24 Jul 2012 02:15:47 +0000 (12:15 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Jul 2012 05:53:05 +0000 (07:53 +0200)
Rename, add cpp shell, add doc file, add project files.

Task-number: QTBUG-26235
Change-Id: I51c2abefbadbadbadae0abdde5a52f857bcdb68b
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
23 files changed:
doc/src/images/qml-stocqt-demo-small.png [new file with mode: 0644]
examples/demos/demos.pro
examples/demos/stocqt/content/Button.qml [moved from examples/demos/stockchart/content/Button.qml with 100% similarity]
examples/demos/stocqt/content/DatePicker.qml [moved from examples/demos/stockchart/content/DatePicker.qml with 100% similarity]
examples/demos/stocqt/content/StockChart.qml [moved from examples/demos/stockchart/content/StockChart.qml with 100% similarity]
examples/demos/stocqt/content/StockListModel.qml [moved from examples/demos/stockchart/content/StockListModel.qml with 100% similarity]
examples/demos/stocqt/content/StockListView.qml [moved from examples/demos/stockchart/content/StockListView.qml with 100% similarity]
examples/demos/stocqt/content/StockModel.qml [moved from examples/demos/stockchart/content/StockModel.qml with 100% similarity]
examples/demos/stocqt/content/StockSettings.qml [moved from examples/demos/stockchart/content/StockSettings.qml with 100% similarity]
examples/demos/stocqt/content/StockView.qml [moved from examples/demos/stockchart/content/StockView.qml with 100% similarity]
examples/demos/stocqt/content/images/icon-calendar-anim.png [moved from examples/demos/stockchart/content/images/icon-calendar-anim.png with 100% similarity]
examples/demos/stocqt/content/images/icon-calendar.png [moved from examples/demos/stockchart/content/images/icon-calendar.png with 100% similarity]
examples/demos/stocqt/content/images/icon-items.png [moved from examples/demos/stockchart/content/images/icon-items.png with 100% similarity]
examples/demos/stocqt/content/images/icon-settings.png [moved from examples/demos/stockchart/content/images/icon-settings.png with 100% similarity]
examples/demos/stocqt/content/images/logo.png [moved from examples/demos/stockchart/content/images/logo.png with 100% similarity]
examples/demos/stocqt/content/images/stock-selected.png [moved from examples/demos/stockchart/content/images/stock-selected.png with 100% similarity]
examples/demos/stocqt/content/images/wheel-touch.png [moved from examples/demos/stockchart/content/images/wheel-touch.png with 100% similarity]
examples/demos/stocqt/content/images/wheel.png [moved from examples/demos/stockchart/content/images/wheel.png with 100% similarity]
examples/demos/stocqt/main.cpp [new file with mode: 0644]
examples/demos/stocqt/stocqt.pro [new file with mode: 0644]
examples/demos/stocqt/stocqt.qdoc [new file with mode: 0644]
examples/demos/stocqt/stocqt.qml [moved from examples/demos/stockchart/main.qml with 100% similarity]
examples/demos/stocqt/stocqt.qmlproject [new file with mode: 0644]

diff --git a/doc/src/images/qml-stocqt-demo-small.png b/doc/src/images/qml-stocqt-demo-small.png
new file mode 100644 (file)
index 0000000..0f8a32f
Binary files /dev/null and b/doc/src/images/qml-stocqt-demo-small.png differ
index 1cc19cd..00fb8d8 100644 (file)
@@ -2,4 +2,5 @@ TEMPLATE = subdirs
 SUBDIRS =   calqlatr \
             samegame \
             tweetsearch \
-            maroon
+            maroon \
+            stocqt
diff --git a/examples/demos/stocqt/main.cpp b/examples/demos/stocqt/main.cpp
new file mode 100644 (file)
index 0000000..c1cd949
--- /dev/null
@@ -0,0 +1,41 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/
+**
+** This file is part of the examples of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+**   * Redistributions of source code must retain the above copyright
+**     notice, this list of conditions and the following disclaimer.
+**   * Redistributions in binary form must reproduce the above copyright
+**     notice, this list of conditions and the following disclaimer in
+**     the documentation and/or other materials provided with the
+**     distribution.
+**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
+**     the names of its contributors may be used to endorse or promote
+**     products derived from this software without specific prior written
+**     permission.
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+#include "../../shared/shared.h"
+DECLARATIVE_EXAMPLE_MAIN(stocqt)
diff --git a/examples/demos/stocqt/stocqt.pro b/examples/demos/stocqt/stocqt.pro
new file mode 100644 (file)
index 0000000..74d2755
--- /dev/null
@@ -0,0 +1,9 @@
+TEMPLATE = app
+
+QT += qml quick
+SOURCES += main.cpp
+
+target.path = $$[QT_INSTALL_EXAMPLES]/qtdeclarative/demos/stocqt
+qml.files = stocqt.qml content
+qml.path = $$[QT_INSTALL_EXAMPLES]/qtdeclarative/demos/stocqt
+INSTALLS += target qml
diff --git a/examples/demos/stocqt/stocqt.qdoc b/examples/demos/stocqt/stocqt.qdoc
new file mode 100644 (file)
index 0000000..eb03c07
--- /dev/null
@@ -0,0 +1,39 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/
+**
+** This file is part of the documentation of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** GNU Free Documentation License
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms
+** and conditions contained in a signed written agreement between you
+** and Nokia.
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+    \title QML Demo - StocQt
+    \example demos/StocQt
+    \brief This is an example stock chart viewer written in QML.
+    \image qml-stocqt-demo-small.png
+
+    This demo implements a simple stock chart viewer, designed for portrait devices.
+
+    This app requests online data, which it processes in javascript. It then paints a chart depiction of the data using
+    the Canvas imperative drawing API.
+*/
+
diff --git a/examples/demos/stocqt/stocqt.qmlproject b/examples/demos/stocqt/stocqt.qmlproject
new file mode 100644 (file)
index 0000000..11ab784
--- /dev/null
@@ -0,0 +1,16 @@
+import QmlProject 1.1
+
+Project {
+    mainFile: "stocqt.qml"
+
+    /* Include .qml, .js, and image files from current directory and subdirectories */
+    QmlFiles {
+        directory: "."
+    }
+    JavaScriptFiles {
+        directory: "."
+    }
+    ImageFiles {
+        directory: "."
+    }
+}