summaryrefslogtreecommitdiffstats
path: root/demos/quick2chart/qml
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quick2chart/qml')
-rw-r--r--demos/quick2chart/qml/quick2chart/View1.qml54
-rw-r--r--demos/quick2chart/qml/quick2chart/View10.qml42
-rw-r--r--demos/quick2chart/qml/quick2chart/View11.qml43
-rw-r--r--demos/quick2chart/qml/quick2chart/View12.qml77
-rw-r--r--demos/quick2chart/qml/quick2chart/View2.qml45
-rw-r--r--demos/quick2chart/qml/quick2chart/View3.qml45
-rw-r--r--demos/quick2chart/qml/quick2chart/View4.qml109
-rw-r--r--demos/quick2chart/qml/quick2chart/View5.qml57
-rw-r--r--demos/quick2chart/qml/quick2chart/View6.qml43
-rw-r--r--demos/quick2chart/qml/quick2chart/View7.qml43
-rw-r--r--demos/quick2chart/qml/quick2chart/View8.qml42
-rw-r--r--demos/quick2chart/qml/quick2chart/View9.qml43
-rw-r--r--demos/quick2chart/qml/quick2chart/loader.qml37
-rw-r--r--demos/quick2chart/qml/quick2chart/main.qml91
14 files changed, 0 insertions, 771 deletions
diff --git a/demos/quick2chart/qml/quick2chart/View1.qml b/demos/quick2chart/qml/quick2chart/View1.qml
deleted file mode 100644
index e3850ae1..00000000
--- a/demos/quick2chart/qml/quick2chart/View1.qml
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Digia Plc
-** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
-**
-** This file is part of the Qt Enterprise Charts Add-on.
-**
-** $QT_BEGIN_LICENSE$
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
-**
-** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![2]
-import QtQuick 2.0
-//![2]
-import QtCommercial.Chart 1.1
-
-Rectangle {
- anchors.fill: parent
- property variant othersSlice: 0
-
- //![1]
- ChartView {
- id: chart
- title: "Top-5 car brand shares in Finland"
- anchors.fill: parent
- legend.alignment: Qt.AlignBottom
- antialiasing: true
-
- PieSeries {
- id: pieSeries
- PieSlice { label: "Volkswagen"; value: 13.5 }
- PieSlice { label: "Toyota"; value: 10.9 }
- PieSlice { label: "Ford"; value: 8.6 }
- PieSlice { label: "Skoda"; value: 8.2 }
- PieSlice { label: "Volvo"; value: 6.8 }
- }
- }
-
- Component.onCompleted: {
- // You can also manipulate slices dynamically
- othersSlice = pieSeries.append("Others", 52.0);
- pieSeries.find("Volkswagen").exploded = true;
- }
- //![1]
-}
diff --git a/demos/quick2chart/qml/quick2chart/View10.qml b/demos/quick2chart/qml/quick2chart/View10.qml
deleted file mode 100644
index 2a5a2973..00000000
--- a/demos/quick2chart/qml/quick2chart/View10.qml
+++ /dev/null
@@ -1,42 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Digia Plc
-** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
-**
-** This file is part of the Qt Enterprise Charts Add-on.
-**
-** $QT_BEGIN_LICENSE$
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
-**
-** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtCommercial.Chart 1.1
-
-Rectangle {
- anchors.fill: parent
-
- //![1]
- ChartView {
- title: "Horizontal Stacked Bar series"
- anchors.fill: parent
- legend.alignment: Qt.AlignBottom
- antialiasing: true
-
- HorizontalStackedBarSeries {
- axisY: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] }
- BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] }
- BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] }
- BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] }
- }
- }
- //![1]
-}
diff --git a/demos/quick2chart/qml/quick2chart/View11.qml b/demos/quick2chart/qml/quick2chart/View11.qml
deleted file mode 100644
index 2b2d444a..00000000
--- a/demos/quick2chart/qml/quick2chart/View11.qml
+++ /dev/null
@@ -1,43 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Digia Plc
-** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
-**
-** This file is part of the Qt Enterprise Charts Add-on.
-**
-** $QT_BEGIN_LICENSE$
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
-**
-** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtCommercial.Chart 1.1
-
-Rectangle {
- anchors.fill: parent
-
- //![1]
- ChartView {
- title: "Horizontal Percent Bar series"
- anchors.fill: parent
- legend.alignment: Qt.AlignBottom
- antialiasing: true
-
- HorizontalPercentBarSeries {
- axisY: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] }
- BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] }
- BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] }
- BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] }
- }
- }
- //![1]
-}
-
diff --git a/demos/quick2chart/qml/quick2chart/View12.qml b/demos/quick2chart/qml/quick2chart/View12.qml
deleted file mode 100644
index 74d97896..00000000
--- a/demos/quick2chart/qml/quick2chart/View12.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Digia Plc
-** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
-**
-** This file is part of the Qt Enterprise Charts Add-on.
-**
-** $QT_BEGIN_LICENSE$
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
-**
-** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtCommercial.Chart 1.1
-
-Rectangle {
- anchors.fill: parent
-
- //![1]
- ChartView {
- id: chart
- title: "Production costs"
- anchors.fill: parent
- legend.visible: false
- antialiasing: true
-
- PieSeries {
- id: pieOuter
- size: 0.96
- holeSize: 0.7
- PieSlice { id: slice; label: "Alpha"; value: 19511; color: "#8AB846"; borderColor: "#163430" }
- PieSlice { label: "Epsilon"; value: 11105; color: "#C0EEFF"; borderColor: "#3B391C" }
- PieSlice { label: "Psi"; value: 9352; color: "#DF8939"; borderColor: "#13060C" }
- }
-
- PieSeries {
- size: 0.7
- id: pieInner
- holeSize: 0.25
-
- PieSlice { label: "Materials"; value: 10334; color: "#8AB846"; borderColor: "#163430" }
- PieSlice { label: "Employee"; value: 3066; color: "#AAE356"; borderColor: "#163430" }
- PieSlice { label: "Logistics"; value: 6111; color: "#99CC4E"; borderColor: "#163430" }
-
- PieSlice { label: "Materials"; value: 7371; color: "#C0EEFF"; borderColor: "#3B391C" }
- PieSlice { label: "Employee"; value: 2443; color: "#C9FAFF"; borderColor: "#3B391C" }
- PieSlice { label: "Logistics"; value: 1291; color: "#B0FAFF"; borderColor: "#3B391C" }
-
- PieSlice { label: "Materials"; value: 4022; color: "#DF8939"; borderColor: "#13060C" }
- PieSlice { label: "Employee"; value: 3998; color: "#FC9D42"; borderColor: "#13060C" }
- PieSlice { label: "Logistics"; value: 1332; color: "#F2963F"; borderColor: "#13060C" }
- }
- }
-
- Component.onCompleted: {
- // Set the common slice properties dynamically for convenience
- for (var i = 0; i < pieOuter.count; i++) {
- pieOuter.at(i).labelPosition = PieSlice.LabelOutside;
- pieOuter.at(i).labelVisible = true;
- pieOuter.at(i).borderWidth = 3;
- }
- for (var i = 0; i < pieInner.count; i++) {
- pieInner.at(i).labelPosition = PieSlice.LabelInsideNormal;
- pieInner.at(i).labelVisible = true;
- pieInner.at(i).borderWidth = 2;
- }
- }
- //![1]
-}
diff --git a/demos/quick2chart/qml/quick2chart/View2.qml b/demos/quick2chart/qml/quick2chart/View2.qml
deleted file mode 100644
index a7e0ace4..00000000
--- a/demos/quick2chart/qml/quick2chart/View2.qml
+++ /dev/null
@@ -1,45 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Digia Plc
-** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
-**
-** This file is part of the Qt Enterprise Charts Add-on.
-**
-** $QT_BEGIN_LICENSE$
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
-**
-** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtCommercial.Chart 1.1
-
-Rectangle {
- anchors.fill: parent
-
- //![1]
- ChartView {
- title: "Line"
- anchors.fill: parent
- antialiasing: true
-
- LineSeries {
- name: "LineSeries"
- XYPoint { x: 0; y: 0 }
- XYPoint { x: 1.1; y: 2.1 }
- XYPoint { x: 1.9; y: 3.3 }
- XYPoint { x: 2.1; y: 2.1 }
- XYPoint { x: 2.9; y: 4.9 }
- XYPoint { x: 3.4; y: 3.0 }
- XYPoint { x: 4.1; y: 3.3 }
- }
- }
- //![1]
-}
diff --git a/demos/quick2chart/qml/quick2chart/View3.qml b/demos/quick2chart/qml/quick2chart/View3.qml
deleted file mode 100644
index d56ceeb2..00000000
--- a/demos/quick2chart/qml/quick2chart/View3.qml
+++ /dev/null
@@ -1,45 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Digia Plc
-** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
-**
-** This file is part of the Qt Enterprise Charts Add-on.
-**
-** $QT_BEGIN_LICENSE$
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
-**
-** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtCommercial.Chart 1.1
-
-Rectangle {
- anchors.fill: parent
-
- //![1]
- ChartView {
- title: "Spline"
- anchors.fill: parent
- antialiasing: true
-
- SplineSeries {
- name: "SplineSeries"
- XYPoint { x: 0; y: 0.0 }
- XYPoint { x: 1.1; y: 3.2 }
- XYPoint { x: 1.9; y: 2.4 }
- XYPoint { x: 2.1; y: 2.1 }
- XYPoint { x: 2.9; y: 2.6 }
- XYPoint { x: 3.4; y: 2.3 }
- XYPoint { x: 4.1; y: 3.1 }
- }
- }
- //![1]
-}
diff --git a/demos/quick2chart/qml/quick2chart/View4.qml b/demos/quick2chart/qml/quick2chart/View4.qml
deleted file mode 100644
index 5ca59061..00000000
--- a/demos/quick2chart/qml/quick2chart/View4.qml
+++ /dev/null
@@ -1,109 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Digia Plc
-** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
-**
-** This file is part of the Qt Enterprise Charts Add-on.
-**
-** $QT_BEGIN_LICENSE$
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
-**
-** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtCommercial.Chart 1.1
-
-Rectangle {
- anchors.fill: parent
-
- //![1]
- ChartView {
- title: "NHL All-Star Team Players"
- anchors.fill: parent
- antialiasing: true
-
- ValueAxis {
- id: valueAxis
- min: 2000
- max: 2011
- tickCount: 12
- labelFormat: "%.0f"
- }
-
- AreaSeries {
- name: "Russian"
- color: "#FFD52B1E"
- borderColor: "#FF0039A5"
- borderWidth: 3
- axisX: valueAxis
- upperSeries: LineSeries {
- XYPoint { x: 2000; y: 1 }
- XYPoint { x: 2001; y: 1 }
- XYPoint { x: 2002; y: 1 }
- XYPoint { x: 2003; y: 1 }
- XYPoint { x: 2004; y: 1 }
- XYPoint { x: 2005; y: 0 }
- XYPoint { x: 2006; y: 1 }
- XYPoint { x: 2007; y: 1 }
- XYPoint { x: 2008; y: 4 }
- XYPoint { x: 2009; y: 3 }
- XYPoint { x: 2010; y: 2 }
- XYPoint { x: 2011; y: 1 }
- }
- }
- // ...
- //![1]
-
- AreaSeries {
- name: "Swedish"
- color: "#AF005292"
- borderColor: "#AFFDCA00"
- borderWidth: 3
- axisX: valueAxis
- upperSeries: LineSeries {
- XYPoint { x: 2000; y: 1 }
- XYPoint { x: 2001; y: 1 }
- XYPoint { x: 2002; y: 3 }
- XYPoint { x: 2003; y: 3 }
- XYPoint { x: 2004; y: 2 }
- XYPoint { x: 2005; y: 0 }
- XYPoint { x: 2006; y: 2 }
- XYPoint { x: 2007; y: 1 }
- XYPoint { x: 2008; y: 2 }
- XYPoint { x: 2009; y: 1 }
- XYPoint { x: 2010; y: 3 }
- XYPoint { x: 2011; y: 3 }
- }
- }
-
- AreaSeries {
- name: "Finnish"
- color: "#00357F"
- borderColor: "#FEFEFE"
- borderWidth: 3
- axisX: valueAxis
- upperSeries: LineSeries {
- XYPoint { x: 2000; y: 0 }
- XYPoint { x: 2001; y: 0 }
- XYPoint { x: 2002; y: 0 }
- XYPoint { x: 2003; y: 0 }
- XYPoint { x: 2004; y: 0 }
- XYPoint { x: 2005; y: 0 }
- XYPoint { x: 2006; y: 1 }
- XYPoint { x: 2007; y: 0 }
- XYPoint { x: 2008; y: 0 }
- XYPoint { x: 2009; y: 0 }
- XYPoint { x: 2010; y: 0 }
- XYPoint { x: 2011; y: 1 }
- }
- }
- }
-}
diff --git a/demos/quick2chart/qml/quick2chart/View5.qml b/demos/quick2chart/qml/quick2chart/View5.qml
deleted file mode 100644
index 4b0882cb..00000000
--- a/demos/quick2chart/qml/quick2chart/View5.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Digia Plc
-** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
-**
-** This file is part of the Qt Enterprise Charts Add-on.
-**
-** $QT_BEGIN_LICENSE$
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
-**
-** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtCommercial.Chart 1.1
-
-Rectangle {
- anchors.fill: parent
-
- //![1]
- ChartView {
- title: "Scatters"
- anchors.fill: parent
- antialiasing: true
-
- ScatterSeries {
- id: scatter1
- name: "Scatter1"
- XYPoint { x: 1.5; y: 1.5 }
- XYPoint { x: 1.5; y: 1.6 }
- XYPoint { x: 1.57; y: 1.55 }
- XYPoint { x: 1.8; y: 1.8 }
- XYPoint { x: 1.9; y: 1.6 }
- XYPoint { x: 2.1; y: 1.3 }
- XYPoint { x: 2.5; y: 2.1 }
- }
-
- ScatterSeries {
- name: "Scatter2"
- // ...
- //![1]
- XYPoint { x: 2.0; y: 2.0 }
- XYPoint { x: 2.0; y: 2.1 }
- XYPoint { x: 2.07; y: 2.05 }
- XYPoint { x: 2.2; y: 2.9 }
- XYPoint { x: 2.4; y: 2.7 }
- XYPoint { x: 2.67; y: 2.65 }
- }
- }
-}
diff --git a/demos/quick2chart/qml/quick2chart/View6.qml b/demos/quick2chart/qml/quick2chart/View6.qml
deleted file mode 100644
index b9db3aca..00000000
--- a/demos/quick2chart/qml/quick2chart/View6.qml
+++ /dev/null
@@ -1,43 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Digia Plc
-** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
-**
-** This file is part of the Qt Enterprise Charts Add-on.
-**
-** $QT_BEGIN_LICENSE$
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
-**
-** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtCommercial.Chart 1.1
-
-Rectangle {
- anchors.fill: parent
-
- //![1]
- ChartView {
- title: "Bar series"
- anchors.fill: parent
- legend.alignment: Qt.AlignBottom
- antialiasing: true
-
- BarSeries {
- id: mySeries
- axisX: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] }
- BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] }
- BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] }
- BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] }
- }
- }
- //![1]
-}
diff --git a/demos/quick2chart/qml/quick2chart/View7.qml b/demos/quick2chart/qml/quick2chart/View7.qml
deleted file mode 100644
index 998097a7..00000000
--- a/demos/quick2chart/qml/quick2chart/View7.qml
+++ /dev/null
@@ -1,43 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Digia Plc
-** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
-**
-** This file is part of the Qt Enterprise Charts Add-on.
-**
-** $QT_BEGIN_LICENSE$
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
-**
-** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtCommercial.Chart 1.1
-
-Rectangle {
- anchors.fill: parent
-
- //![1]
- ChartView {
- title: "Stacked Bar series"
- anchors.fill: parent
- legend.alignment: Qt.AlignBottom
- antialiasing: true
-
- StackedBarSeries {
- id: mySeries
- axisX: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] }
- BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] }
- BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] }
- BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] }
- }
- }
- //![1]
-}
diff --git a/demos/quick2chart/qml/quick2chart/View8.qml b/demos/quick2chart/qml/quick2chart/View8.qml
deleted file mode 100644
index fcb8a729..00000000
--- a/demos/quick2chart/qml/quick2chart/View8.qml
+++ /dev/null
@@ -1,42 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Digia Plc
-** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
-**
-** This file is part of the Qt Enterprise Charts Add-on.
-**
-** $QT_BEGIN_LICENSE$
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
-**
-** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtCommercial.Chart 1.1
-
-Rectangle {
- anchors.fill: parent
-
- //![1]
- ChartView {
- title: "Percent Bar series"
- anchors.fill: parent
- legend.alignment: Qt.AlignBottom
- antialiasing: true
-
- PercentBarSeries {
- axisX: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] }
- BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] }
- BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] }
- BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] }
- }
- }
- //![1]
-}
diff --git a/demos/quick2chart/qml/quick2chart/View9.qml b/demos/quick2chart/qml/quick2chart/View9.qml
deleted file mode 100644
index 5ba3d365..00000000
--- a/demos/quick2chart/qml/quick2chart/View9.qml
+++ /dev/null
@@ -1,43 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Digia Plc
-** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
-**
-** This file is part of the Qt Enterprise Charts Add-on.
-**
-** $QT_BEGIN_LICENSE$
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
-**
-** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtCommercial.Chart 1.1
-
-Rectangle {
- anchors.fill: parent
-
- //![1]
- ChartView {
- title: "Horizontal Bar series"
- anchors.fill: parent
- legend.alignment: Qt.AlignBottom
- antialiasing: true
-
- HorizontalBarSeries {
- axisY: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] }
- BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] }
- BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] }
- BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] }
- }
- }
- //![1]
-}
-
diff --git a/demos/quick2chart/qml/quick2chart/loader.qml b/demos/quick2chart/qml/quick2chart/loader.qml
deleted file mode 100644
index f9b7569a..00000000
--- a/demos/quick2chart/qml/quick2chart/loader.qml
+++ /dev/null
@@ -1,37 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Digia Plc
-** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
-**
-** This file is part of the Qt Enterprise Charts Add-on.
-**
-** $QT_BEGIN_LICENSE$
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
-**
-** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Item {
- id: container
- width: 600
- height: 400
- Component.onCompleted: {
- var co = Qt.createComponent("main.qml")
- if (co.status == Component.Ready) {
- var o = co.createObject(container)
- } else {
- console.log(co.errorString())
- console.log("QtCommercial.Chart 1.1 not available")
- console.log("Please use correct QML_IMPORT_PATH export")
- }
- }
-}
diff --git a/demos/quick2chart/qml/quick2chart/main.qml b/demos/quick2chart/qml/quick2chart/main.qml
deleted file mode 100644
index 2f52d578..00000000
--- a/demos/quick2chart/qml/quick2chart/main.qml
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Digia Plc
-** All rights reserved.
-** For any questions to Digia, please use contact form at http://qt.digia.com
-**
-** This file is part of the Qt Enterprise Charts Add-on.
-**
-** $QT_BEGIN_LICENSE$
-** Licensees holding valid Qt Enterprise licenses may use this file in
-** accordance with the Qt Enterprise License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia.
-**
-** If you have questions regarding the use of this file, please use
-** contact form at http://qt.digia.com
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![1]
-import QtQuick 2.0
-//![1]
-
-Rectangle {
- width: 600
- height: 400
- property int viewNumber: 1
-
- Loader {
- id: loader
- anchors.fill: parent
- source: "View" + viewNumber + ".qml";
- }
-
- Rectangle {
- id: infoText
- anchors.centerIn: parent
- width: parent.width
- height: 40
- color: "black"
- Text {
- color: "white"
- anchors.centerIn: parent
- text: "Use left and right arrow keys to navigate between chart types"
- }
-
- Behavior on opacity {
- NumberAnimation { duration: 400 }
- }
- }
-
- MouseArea {
- focus: true
- anchors.fill: parent
- onClicked: {
- if (infoText.opacity > 0) {
- infoText.opacity = 0.0;
- } else {
- nextView();
- }
- }
- Keys.onPressed: {
- if (infoText.opacity > 0) {
- infoText.opacity = 0.0;
- } else {
- if (event.key == Qt.Key_Left) {
- previousView();
- } else {
- nextView();
- }
- }
- }
- }
-
- function nextView() {
- var i = viewNumber + 1;
- if (i > 12)
- viewNumber = 1;
- else
- viewNumber = i;
- }
-
- function previousView() {
- var i = viewNumber - 1;
- if (i <= 0)
- viewNumber = 12;
- else
- viewNumber = i;
- }
-}