summaryrefslogtreecommitdiffstats
path: root/basicsuite/enterprise-charts/View8.qml
diff options
context:
space:
mode:
authorJuho Annunen <juho.annunen@qt.io>2018-04-23 15:17:33 +0300
committerJuho Annunen <juho.annunen@qt.io>2018-05-07 09:31:23 +0000
commitda6035233fc3bcfbc4a3d65075ee4099349c09d0 (patch)
tree0419ef297d5fe3c91e216c765efb6525802be845 /basicsuite/enterprise-charts/View8.qml
parente513aed3b9cb8ff3124c21ed01e45128fa686eee (diff)
Move common definitions to shared settings
Task-number: QTBUG-65302 Change-Id: I2153e2f2b4aa295e87098256354ed034480294df Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
Diffstat (limited to 'basicsuite/enterprise-charts/View8.qml')
-rw-r--r--basicsuite/enterprise-charts/View8.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/basicsuite/enterprise-charts/View8.qml b/basicsuite/enterprise-charts/View8.qml
index ff7bed7..81fc60a 100644
--- a/basicsuite/enterprise-charts/View8.qml
+++ b/basicsuite/enterprise-charts/View8.qml
@@ -50,6 +50,7 @@
import QtQuick 2.0
import QtCharts 2.0
+import "settings.js" as Settings
Item {
anchors.fill: parent
@@ -59,9 +60,9 @@ Item {
anchors.fill: parent
PercentBarSeries {
axisX: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] }
- BarSet { label: "Bob"; color: defaultGreen; values: [2, 2, 3, 4, 5, 6] }
- BarSet { label: "Susan"; color: defaultGrey; values: [5, 1, 2, 4, 1, 7] }
- BarSet { label: "James"; color: secondaryGrey; values: [3, 5, 8, 13, 5, 8] }
+ BarSet { label: "Bob"; color: Settings.primaryGreen; values: [2, 2, 3, 4, 5, 6] }
+ BarSet { label: "Susan"; color: Settings.primaryGrey; values: [5, 1, 2, 4, 1, 7] }
+ BarSet { label: "James"; color: Settings.secondaryGrey; values: [3, 5, 8, 13, 5, 8] }
}
Component.onCompleted: {