aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2012-07-24 12:15:47 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-24 07:53:05 +0200
commita53253d89fc281d8754aeeaaa497cf42ce5d314e (patch)
tree44d2fbaaf0cd0b62a23e726f7517171d9ffb450a /examples
parentc315908dc4331ee5f47012865842352ea0dd6ca4 (diff)
Clean up StocQt demo
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>
Diffstat (limited to 'examples')
-rw-r--r--examples/demos/demos.pro3
-rw-r--r--examples/demos/stocqt/content/Button.qml (renamed from examples/demos/stockchart/content/Button.qml)0
-rw-r--r--examples/demos/stocqt/content/DatePicker.qml (renamed from examples/demos/stockchart/content/DatePicker.qml)0
-rw-r--r--examples/demos/stocqt/content/StockChart.qml (renamed from examples/demos/stockchart/content/StockChart.qml)0
-rw-r--r--examples/demos/stocqt/content/StockListModel.qml (renamed from examples/demos/stockchart/content/StockListModel.qml)0
-rw-r--r--examples/demos/stocqt/content/StockListView.qml (renamed from examples/demos/stockchart/content/StockListView.qml)0
-rw-r--r--examples/demos/stocqt/content/StockModel.qml (renamed from examples/demos/stockchart/content/StockModel.qml)0
-rw-r--r--examples/demos/stocqt/content/StockSettings.qml (renamed from examples/demos/stockchart/content/StockSettings.qml)0
-rw-r--r--examples/demos/stocqt/content/StockView.qml (renamed from examples/demos/stockchart/content/StockView.qml)0
-rw-r--r--examples/demos/stocqt/content/images/icon-calendar-anim.png (renamed from examples/demos/stockchart/content/images/icon-calendar-anim.png)bin1088 -> 1088 bytes
-rw-r--r--examples/demos/stocqt/content/images/icon-calendar.png (renamed from examples/demos/stockchart/content/images/icon-calendar.png)bin884 -> 884 bytes
-rw-r--r--examples/demos/stocqt/content/images/icon-items.png (renamed from examples/demos/stockchart/content/images/icon-items.png)bin887 -> 887 bytes
-rw-r--r--examples/demos/stocqt/content/images/icon-settings.png (renamed from examples/demos/stockchart/content/images/icon-settings.png)bin1066 -> 1066 bytes
-rw-r--r--examples/demos/stocqt/content/images/logo.png (renamed from examples/demos/stockchart/content/images/logo.png)bin4266 -> 4266 bytes
-rw-r--r--examples/demos/stocqt/content/images/stock-selected.png (renamed from examples/demos/stockchart/content/images/stock-selected.png)bin6480 -> 6480 bytes
-rw-r--r--examples/demos/stocqt/content/images/wheel-touch.png (renamed from examples/demos/stockchart/content/images/wheel-touch.png)bin4767 -> 4767 bytes
-rw-r--r--examples/demos/stocqt/content/images/wheel.png (renamed from examples/demos/stockchart/content/images/wheel.png)bin36223 -> 36223 bytes
-rw-r--r--examples/demos/stocqt/main.cpp41
-rw-r--r--examples/demos/stocqt/stocqt.pro9
-rw-r--r--examples/demos/stocqt/stocqt.qdoc39
-rw-r--r--examples/demos/stocqt/stocqt.qml (renamed from examples/demos/stockchart/main.qml)0
-rw-r--r--examples/demos/stocqt/stocqt.qmlproject16
22 files changed, 107 insertions, 1 deletions
diff --git a/examples/demos/demos.pro b/examples/demos/demos.pro
index 1cc19cdf00..00fb8d8b88 100644
--- a/examples/demos/demos.pro
+++ b/examples/demos/demos.pro
@@ -2,4 +2,5 @@ TEMPLATE = subdirs
SUBDIRS = calqlatr \
samegame \
tweetsearch \
- maroon
+ maroon \
+ stocqt
diff --git a/examples/demos/stockchart/content/Button.qml b/examples/demos/stocqt/content/Button.qml
index 325bd8f475..325bd8f475 100644
--- a/examples/demos/stockchart/content/Button.qml
+++ b/examples/demos/stocqt/content/Button.qml
diff --git a/examples/demos/stockchart/content/DatePicker.qml b/examples/demos/stocqt/content/DatePicker.qml
index a85d4f2638..a85d4f2638 100644
--- a/examples/demos/stockchart/content/DatePicker.qml
+++ b/examples/demos/stocqt/content/DatePicker.qml
diff --git a/examples/demos/stockchart/content/StockChart.qml b/examples/demos/stocqt/content/StockChart.qml
index 9dc1ea32d6..9dc1ea32d6 100644
--- a/examples/demos/stockchart/content/StockChart.qml
+++ b/examples/demos/stocqt/content/StockChart.qml
diff --git a/examples/demos/stockchart/content/StockListModel.qml b/examples/demos/stocqt/content/StockListModel.qml
index 043bca132e..043bca132e 100644
--- a/examples/demos/stockchart/content/StockListModel.qml
+++ b/examples/demos/stocqt/content/StockListModel.qml
diff --git a/examples/demos/stockchart/content/StockListView.qml b/examples/demos/stocqt/content/StockListView.qml
index 1dd442d4e6..1dd442d4e6 100644
--- a/examples/demos/stockchart/content/StockListView.qml
+++ b/examples/demos/stocqt/content/StockListView.qml
diff --git a/examples/demos/stockchart/content/StockModel.qml b/examples/demos/stocqt/content/StockModel.qml
index 72afe28b5d..72afe28b5d 100644
--- a/examples/demos/stockchart/content/StockModel.qml
+++ b/examples/demos/stocqt/content/StockModel.qml
diff --git a/examples/demos/stockchart/content/StockSettings.qml b/examples/demos/stocqt/content/StockSettings.qml
index 656830d561..656830d561 100644
--- a/examples/demos/stockchart/content/StockSettings.qml
+++ b/examples/demos/stocqt/content/StockSettings.qml
diff --git a/examples/demos/stockchart/content/StockView.qml b/examples/demos/stocqt/content/StockView.qml
index 7c5ff92fa1..7c5ff92fa1 100644
--- a/examples/demos/stockchart/content/StockView.qml
+++ b/examples/demos/stocqt/content/StockView.qml
diff --git a/examples/demos/stockchart/content/images/icon-calendar-anim.png b/examples/demos/stocqt/content/images/icon-calendar-anim.png
index c5164d5183..c5164d5183 100644
--- a/examples/demos/stockchart/content/images/icon-calendar-anim.png
+++ b/examples/demos/stocqt/content/images/icon-calendar-anim.png
Binary files differ
diff --git a/examples/demos/stockchart/content/images/icon-calendar.png b/examples/demos/stocqt/content/images/icon-calendar.png
index bd2857470b..bd2857470b 100644
--- a/examples/demos/stockchart/content/images/icon-calendar.png
+++ b/examples/demos/stocqt/content/images/icon-calendar.png
Binary files differ
diff --git a/examples/demos/stockchart/content/images/icon-items.png b/examples/demos/stocqt/content/images/icon-items.png
index f951aa5009..f951aa5009 100644
--- a/examples/demos/stockchart/content/images/icon-items.png
+++ b/examples/demos/stocqt/content/images/icon-items.png
Binary files differ
diff --git a/examples/demos/stockchart/content/images/icon-settings.png b/examples/demos/stocqt/content/images/icon-settings.png
index 222d998289..222d998289 100644
--- a/examples/demos/stockchart/content/images/icon-settings.png
+++ b/examples/demos/stocqt/content/images/icon-settings.png
Binary files differ
diff --git a/examples/demos/stockchart/content/images/logo.png b/examples/demos/stocqt/content/images/logo.png
index 90c7c3ba3d..90c7c3ba3d 100644
--- a/examples/demos/stockchart/content/images/logo.png
+++ b/examples/demos/stocqt/content/images/logo.png
Binary files differ
diff --git a/examples/demos/stockchart/content/images/stock-selected.png b/examples/demos/stocqt/content/images/stock-selected.png
index 5629796b9c..5629796b9c 100644
--- a/examples/demos/stockchart/content/images/stock-selected.png
+++ b/examples/demos/stocqt/content/images/stock-selected.png
Binary files differ
diff --git a/examples/demos/stockchart/content/images/wheel-touch.png b/examples/demos/stocqt/content/images/wheel-touch.png
index 11c8120ada..11c8120ada 100644
--- a/examples/demos/stockchart/content/images/wheel-touch.png
+++ b/examples/demos/stocqt/content/images/wheel-touch.png
Binary files differ
diff --git a/examples/demos/stockchart/content/images/wheel.png b/examples/demos/stocqt/content/images/wheel.png
index 470a675b35..470a675b35 100644
--- a/examples/demos/stockchart/content/images/wheel.png
+++ b/examples/demos/stocqt/content/images/wheel.png
Binary files differ
diff --git a/examples/demos/stocqt/main.cpp b/examples/demos/stocqt/main.cpp
new file mode 100644
index 0000000000..c1cd949209
--- /dev/null
+++ b/examples/demos/stocqt/main.cpp
@@ -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
index 0000000000..74d27559d8
--- /dev/null
+++ b/examples/demos/stocqt/stocqt.pro
@@ -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
index 0000000000..eb03c073de
--- /dev/null
+++ b/examples/demos/stocqt/stocqt.qdoc
@@ -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/stockchart/main.qml b/examples/demos/stocqt/stocqt.qml
index e3cdedc781..e3cdedc781 100644
--- a/examples/demos/stockchart/main.qml
+++ b/examples/demos/stocqt/stocqt.qml
diff --git a/examples/demos/stocqt/stocqt.qmlproject b/examples/demos/stocqt/stocqt.qmlproject
new file mode 100644
index 0000000000..11ab78418a
--- /dev/null
+++ b/examples/demos/stocqt/stocqt.qmlproject
@@ -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: "."
+ }
+}