@@ -57,6 +57,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
57 | 57 | /*! |
|
58 | 58 | \qmlproperty string ChartView::title |
|
59 | 59 | The title of the chart, shown on top of the chart. |
|
60 | \sa ChartView::titleColor | |
|
60 | 61 | */ |
|
61 | 62 | |
|
62 | 63 | /*! |
@@ -75,6 +76,27 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
75 | 76 | */ |
|
76 | 77 | |
|
77 | 78 | /*! |
|
79 | \qmlproperty Legend ChartView::legend | |
|
80 | The legend of the chart. Legend lists all the series, pie slices and bar sets added on the chart. | |
|
81 | */ | |
|
82 | ||
|
83 | /*! | |
|
84 | \qmlproperty int ChartView::count | |
|
85 | The count of series added to the chart. | |
|
86 | */ | |
|
87 | ||
|
88 | /*! | |
|
89 | \qmlproperty color ChartView::backgroundColor | |
|
90 | The color of the chart's background. By default background color is defined by chart theme. | |
|
91 | \sa ChartView::theme | |
|
92 | */ | |
|
93 | ||
|
94 | /*! | |
|
95 | \qmlproperty bool ChartView::dropShadowEnabled | |
|
96 | The chart's border drop shadow. Set to true to enable drop shadow. | |
|
97 | */ | |
|
98 | ||
|
99 | /*! | |
|
78 | 100 | \qmlmethod Axis ChartView::axisY(QAbstractSeries *series) |
|
79 | 101 | The y-axis of the series. This is the same as the default y-axis of the chart, unless you have |
|
80 | 102 | explicitly defined the series to have a non-default y-axis. |
@@ -239,7 +261,8 QColor DeclarativeChart::titleColor() | |||
|
239 | 261 | void DeclarativeChart::setBackgroundColor(QColor color) |
|
240 | 262 | { |
|
241 | 263 | QBrush b = m_chart->backgroundBrush(); |
|
242 | if (color != b.color()) { | |
|
264 | if (b.style() != Qt::SolidPattern || color != b.color()) { | |
|
265 | b.setStyle(Qt::SolidPattern); | |
|
243 | 266 | b.setColor(color); |
|
244 | 267 | m_chart->setBackgroundBrush(b); |
|
245 | 268 | emit backgroundColorChanged(); |
General Comments 0
You need to be logged in to leave comments.
Login now