summaryrefslogtreecommitdiffstats
path: root/plugins/declarative/declarativechart.cpp
diff options
context:
space:
mode:
authorTero Ahola <tero.ahola@digia.com>2012-12-10 14:21:27 +0200
committerTero Ahola <tero.ahola@digia.com>2012-12-10 14:21:27 +0200
commit4efd2aae0a6f07abf9ec9c23d131859831be938c (patch)
treea02c0d7014485a855320c86038bf9b21381315d1 /plugins/declarative/declarativechart.cpp
parent6a035c04dc6b3d642031f0a9d5bf37a272dc6a42 (diff)
Restored minimumMargins property to QChart
Diffstat (limited to 'plugins/declarative/declarativechart.cpp')
-rw-r--r--plugins/declarative/declarativechart.cpp28
1 files changed, 15 insertions, 13 deletions
diff --git a/plugins/declarative/declarativechart.cpp b/plugins/declarative/declarativechart.cpp
index 1ea5c1a4..e905f67d 100644
--- a/plugins/declarative/declarativechart.cpp
+++ b/plugins/declarative/declarativechart.cpp
@@ -111,26 +111,23 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE
/*!
\qmlproperty real ChartView::topMargin
- Deprecated. Use minimumMargins and plotArea instead.
*/
/*!
\qmlproperty real ChartView::bottomMargin
- Deprecated. Use minimumMargins and plotArea instead.
*/
/*!
\qmlproperty real ChartView::leftMargin
- Deprecated. Use minimumMargins and plotArea instead.
*/
/*!
\qmlproperty real ChartView::rightMargin
- Deprecated. Use minimumMargins and plotArea instead.
*/
/*!
\qmlproperty Margins ChartView::minimumMargins
+ Deprecated; use margins instead.
The minimum margins allowed between the outer bounds and the plotArea of the ChartView. Margins
area of ChartView is used for drawing title, axes and legend. Please note that setting the
properties of minimumMargins may be bigger than the defined value, depending on other ChartView
@@ -146,6 +143,12 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE
*/
/*!
+ \qmlproperty Margins ChartView::margins
+ The minimum margins allowed between the outer bounds and the plotArea of the ChartView. Margins
+ area of ChartView is used for drawing title, axes and legend.
+*/
+
+/*!
\qmlmethod AbstractSeries ChartView::series(int index)
Returns the series with \a index on the chart. This allows you to loop through the series of a chart together with
the count property of the chart.
@@ -489,27 +492,26 @@ bool DeclarativeChart::dropShadowEnabled()
qreal DeclarativeChart::topMargin()
{
- qWarning() << "ChartView.topMargin is deprecated. Use minimumMargins and plotArea instead.";
- return m_chart->plotArea().top();
+ qWarning() << "ChartView.topMargin is deprecated. Use margins instead.";
+ return m_chart->margins().top();
}
qreal DeclarativeChart::bottomMargin()
{
-
- qWarning() << "ChartView.bottomMargin is deprecated. Use minimumMargins and plotArea instead.";
- return m_chart->plotArea().bottom();
+ qWarning() << "ChartView.bottomMargin is deprecated. Use margins instead.";
+ return m_chart->margins().bottom();
}
qreal DeclarativeChart::leftMargin()
{
- qWarning() << "ChartView.leftMargin is deprecated. Use minimumMargins and plotArea instead.";
- return m_chart->plotArea().left();
+ qWarning() << "ChartView.leftMargin is deprecated. Use margins instead.";
+ return m_chart->margins().left();
}
qreal DeclarativeChart::rightMargin()
{
- qWarning() << "ChartView.rightMargin is deprecated. Use minimumMargins and plotArea instead.";
- return m_chart->plotArea().right();
+ qWarning() << "ChartView.rightMargin is deprecated. Use margins instead.";
+ return m_chart->margins().right();
}
void DeclarativeChart::zoom(qreal factor)