diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-06-04 08:59:15 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-06-04 09:07:45 +0300 |
commit | a58216ed7654bf1f3a825f5f1dc1d3da1c9a88f1 (patch) | |
tree | a6de5fad740053c04938280dd270bdcbcb50a04c /plugins/declarative/declarativechart.cpp | |
parent | b76baa838f46089ff6d50a2f003b7903594fd443 (diff) |
Added API to set chart background roundness
Task-number: QTRD-1631
Change-Id: I8ac70b5ed157211b90aa1c9ef3d168bca78fb27c
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'plugins/declarative/declarativechart.cpp')
-rw-r--r-- | plugins/declarative/declarativechart.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/declarative/declarativechart.cpp b/plugins/declarative/declarativechart.cpp index bb62e077..a50a6df0 100644 --- a/plugins/declarative/declarativechart.cpp +++ b/plugins/declarative/declarativechart.cpp @@ -115,6 +115,11 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE */ /*! + \qmlproperty real ChartView::backgroundRoundness + The diameter of the rounding cirle at the corners of the chart background. +*/ + +/*! \qmlproperty color ChartView::plotAreaColor The color of the background of the chart's plot area. By default plot area background uses chart's background color. @@ -706,6 +711,19 @@ bool DeclarativeChart::dropShadowEnabled() return m_chart->isDropShadowEnabled(); } +qreal DeclarativeChart::backgroundRoundness() const +{ + return m_chart->backgroundRoundness(); +} + +void DeclarativeChart::setBackgroundRoundness(qreal diameter) +{ + if (m_chart->backgroundRoundness() != diameter) { + m_chart->setBackgroundRoundness(diameter); + emit backgroundRoundnessChanged(diameter); + } +} + qreal DeclarativeChart::topMargin() { qWarning() << "ChartView.topMargin is deprecated. Use margins instead."; |