diff options
author | Juho Annunen <juho.annunen@qt.io> | 2018-07-30 11:27:56 +0300 |
---|---|---|
committer | Juho Annunen <juho.annunen@qt.io> | 2018-08-02 09:21:50 +0000 |
commit | 4aa85d783e7e3e729ee4a4d772869236bf60d326 (patch) | |
tree | 022bd4a4dd533010e1720c1bbc26f6feb7a75eb2 /basicsuite/enterprise-charts/View7.qml | |
parent | a60eb6782491ca42dd9139ad0a14866cdf064d40 (diff) |
Use QSettings for color definitions
Task-number: QTBUG-69536
Change-Id: I4c1fa7758db6f593dd38050a75d276fcc85346ac
Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
Diffstat (limited to 'basicsuite/enterprise-charts/View7.qml')
-rw-r--r-- | basicsuite/enterprise-charts/View7.qml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/basicsuite/enterprise-charts/View7.qml b/basicsuite/enterprise-charts/View7.qml index afcfd03..78e5350 100644 --- a/basicsuite/enterprise-charts/View7.qml +++ b/basicsuite/enterprise-charts/View7.qml @@ -50,7 +50,6 @@ import QtQuick 2.0 import QtCharts 2.0 -import "settings.js" as Settings Item { anchors.fill: parent @@ -61,9 +60,9 @@ Item { StackedBarSeries { id: mySeries axisX: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] } - 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] } + BarSet { label: "Bob"; color: _primaryGreen; values: [2, 2, 3, 4, 5, 6] } + BarSet { label: "Susan"; color: _primaryGrey; values: [5, 1, 2, 4, 1, 7] } + BarSet { label: "James"; color: _secondaryGrey; values: [3, 5, 8, 13, 5, 8] } } Component.onCompleted: { axes[0].labelsColor = "white"; |