diff options
-rw-r--r-- | doc/src/images/qml-stocqt-demo-small.png | bin | 0 -> 2721 bytes | |||
-rw-r--r-- | examples/demos/demos.pro | 3 | ||||
-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) | bin | 1088 -> 1088 bytes | |||
-rw-r--r-- | examples/demos/stocqt/content/images/icon-calendar.png (renamed from examples/demos/stockchart/content/images/icon-calendar.png) | bin | 884 -> 884 bytes | |||
-rw-r--r-- | examples/demos/stocqt/content/images/icon-items.png (renamed from examples/demos/stockchart/content/images/icon-items.png) | bin | 887 -> 887 bytes | |||
-rw-r--r-- | examples/demos/stocqt/content/images/icon-settings.png (renamed from examples/demos/stockchart/content/images/icon-settings.png) | bin | 1066 -> 1066 bytes | |||
-rw-r--r-- | examples/demos/stocqt/content/images/logo.png (renamed from examples/demos/stockchart/content/images/logo.png) | bin | 4266 -> 4266 bytes | |||
-rw-r--r-- | examples/demos/stocqt/content/images/stock-selected.png (renamed from examples/demos/stockchart/content/images/stock-selected.png) | bin | 6480 -> 6480 bytes | |||
-rw-r--r-- | examples/demos/stocqt/content/images/wheel-touch.png (renamed from examples/demos/stockchart/content/images/wheel-touch.png) | bin | 4767 -> 4767 bytes | |||
-rw-r--r-- | examples/demos/stocqt/content/images/wheel.png (renamed from examples/demos/stockchart/content/images/wheel.png) | bin | 36223 -> 36223 bytes | |||
-rw-r--r-- | examples/demos/stocqt/main.cpp | 41 | ||||
-rw-r--r-- | examples/demos/stocqt/stocqt.pro | 9 | ||||
-rw-r--r-- | examples/demos/stocqt/stocqt.qdoc | 39 | ||||
-rw-r--r-- | examples/demos/stocqt/stocqt.qml (renamed from examples/demos/stockchart/main.qml) | 0 | ||||
-rw-r--r-- | examples/demos/stocqt/stocqt.qmlproject | 16 |
23 files changed, 107 insertions, 1 deletions
diff --git a/doc/src/images/qml-stocqt-demo-small.png b/doc/src/images/qml-stocqt-demo-small.png Binary files differnew file mode 100644 index 0000000000..0f8a32f4f1 --- /dev/null +++ b/doc/src/images/qml-stocqt-demo-small.png 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 Binary files differindex c5164d5183..c5164d5183 100644 --- a/examples/demos/stockchart/content/images/icon-calendar-anim.png +++ b/examples/demos/stocqt/content/images/icon-calendar-anim.png diff --git a/examples/demos/stockchart/content/images/icon-calendar.png b/examples/demos/stocqt/content/images/icon-calendar.png Binary files differindex bd2857470b..bd2857470b 100644 --- a/examples/demos/stockchart/content/images/icon-calendar.png +++ b/examples/demos/stocqt/content/images/icon-calendar.png diff --git a/examples/demos/stockchart/content/images/icon-items.png b/examples/demos/stocqt/content/images/icon-items.png Binary files differindex f951aa5009..f951aa5009 100644 --- a/examples/demos/stockchart/content/images/icon-items.png +++ b/examples/demos/stocqt/content/images/icon-items.png diff --git a/examples/demos/stockchart/content/images/icon-settings.png b/examples/demos/stocqt/content/images/icon-settings.png Binary files differindex 222d998289..222d998289 100644 --- a/examples/demos/stockchart/content/images/icon-settings.png +++ b/examples/demos/stocqt/content/images/icon-settings.png diff --git a/examples/demos/stockchart/content/images/logo.png b/examples/demos/stocqt/content/images/logo.png Binary files differindex 90c7c3ba3d..90c7c3ba3d 100644 --- a/examples/demos/stockchart/content/images/logo.png +++ b/examples/demos/stocqt/content/images/logo.png diff --git a/examples/demos/stockchart/content/images/stock-selected.png b/examples/demos/stocqt/content/images/stock-selected.png Binary files differindex 5629796b9c..5629796b9c 100644 --- a/examples/demos/stockchart/content/images/stock-selected.png +++ b/examples/demos/stocqt/content/images/stock-selected.png diff --git a/examples/demos/stockchart/content/images/wheel-touch.png b/examples/demos/stocqt/content/images/wheel-touch.png Binary files differindex 11c8120ada..11c8120ada 100644 --- a/examples/demos/stockchart/content/images/wheel-touch.png +++ b/examples/demos/stocqt/content/images/wheel-touch.png diff --git a/examples/demos/stockchart/content/images/wheel.png b/examples/demos/stocqt/content/images/wheel.png Binary files differindex 470a675b35..470a675b35 100644 --- a/examples/demos/stockchart/content/images/wheel.png +++ b/examples/demos/stocqt/content/images/wheel.png 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: "." + } +} |