From: Alan Alpert Date: Tue, 24 Jul 2012 02:15:47 +0000 (+1000) Subject: Clean up StocQt demo X-Git-Tag: 1.0_branch~177 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a53253d89fc281d8754aeeaaa497cf42ce5d314e;p=profile%2Fivi%2Fqtdeclarative.git 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 --- diff --git a/doc/src/images/qml-stocqt-demo-small.png b/doc/src/images/qml-stocqt-demo-small.png new file mode 100644 index 0000000..0f8a32f Binary files /dev/null and b/doc/src/images/qml-stocqt-demo-small.png differ diff --git a/examples/demos/demos.pro b/examples/demos/demos.pro index 1cc19cd..00fb8d8 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 similarity index 100% rename from examples/demos/stockchart/content/Button.qml rename to examples/demos/stocqt/content/Button.qml diff --git a/examples/demos/stockchart/content/DatePicker.qml b/examples/demos/stocqt/content/DatePicker.qml similarity index 100% rename from examples/demos/stockchart/content/DatePicker.qml rename to examples/demos/stocqt/content/DatePicker.qml diff --git a/examples/demos/stockchart/content/StockChart.qml b/examples/demos/stocqt/content/StockChart.qml similarity index 100% rename from examples/demos/stockchart/content/StockChart.qml rename to examples/demos/stocqt/content/StockChart.qml diff --git a/examples/demos/stockchart/content/StockListModel.qml b/examples/demos/stocqt/content/StockListModel.qml similarity index 100% rename from examples/demos/stockchart/content/StockListModel.qml rename to examples/demos/stocqt/content/StockListModel.qml diff --git a/examples/demos/stockchart/content/StockListView.qml b/examples/demos/stocqt/content/StockListView.qml similarity index 100% rename from examples/demos/stockchart/content/StockListView.qml rename to examples/demos/stocqt/content/StockListView.qml diff --git a/examples/demos/stockchart/content/StockModel.qml b/examples/demos/stocqt/content/StockModel.qml similarity index 100% rename from examples/demos/stockchart/content/StockModel.qml rename to examples/demos/stocqt/content/StockModel.qml diff --git a/examples/demos/stockchart/content/StockSettings.qml b/examples/demos/stocqt/content/StockSettings.qml similarity index 100% rename from examples/demos/stockchart/content/StockSettings.qml rename to examples/demos/stocqt/content/StockSettings.qml diff --git a/examples/demos/stockchart/content/StockView.qml b/examples/demos/stocqt/content/StockView.qml similarity index 100% rename from examples/demos/stockchart/content/StockView.qml rename to 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 similarity index 100% rename from examples/demos/stockchart/content/images/icon-calendar-anim.png rename to 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 similarity index 100% rename from examples/demos/stockchart/content/images/icon-calendar.png rename to 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 similarity index 100% rename from examples/demos/stockchart/content/images/icon-items.png rename to 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 similarity index 100% rename from examples/demos/stockchart/content/images/icon-settings.png rename to 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 similarity index 100% rename from examples/demos/stockchart/content/images/logo.png rename to 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 similarity index 100% rename from examples/demos/stockchart/content/images/stock-selected.png rename to 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 similarity index 100% rename from examples/demos/stockchart/content/images/wheel-touch.png rename to 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 similarity index 100% rename from examples/demos/stockchart/content/images/wheel.png rename to 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 0000000..c1cd949 --- /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 0000000..74d2755 --- /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 0000000..eb03c07 --- /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 similarity index 100% rename from examples/demos/stockchart/main.qml rename to examples/demos/stocqt/stocqt.qml diff --git a/examples/demos/stocqt/stocqt.qmlproject b/examples/demos/stocqt/stocqt.qmlproject new file mode 100644 index 0000000..11ab784 --- /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: "." + } +}