@@ -111,26 +111,23 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||||
111 |
|
111 | |||
112 | /*! |
|
112 | /*! | |
113 | \qmlproperty real ChartView::topMargin |
|
113 | \qmlproperty real ChartView::topMargin | |
114 | Deprecated. Use minimumMargins and plotArea instead. |
|
|||
115 | */ |
|
114 | */ | |
116 |
|
115 | |||
117 | /*! |
|
116 | /*! | |
118 | \qmlproperty real ChartView::bottomMargin |
|
117 | \qmlproperty real ChartView::bottomMargin | |
119 | Deprecated. Use minimumMargins and plotArea instead. |
|
|||
120 | */ |
|
118 | */ | |
121 |
|
119 | |||
122 | /*! |
|
120 | /*! | |
123 | \qmlproperty real ChartView::leftMargin |
|
121 | \qmlproperty real ChartView::leftMargin | |
124 | Deprecated. Use minimumMargins and plotArea instead. |
|
|||
125 | */ |
|
122 | */ | |
126 |
|
123 | |||
127 | /*! |
|
124 | /*! | |
128 | \qmlproperty real ChartView::rightMargin |
|
125 | \qmlproperty real ChartView::rightMargin | |
129 | Deprecated. Use minimumMargins and plotArea instead. |
|
|||
130 | */ |
|
126 | */ | |
131 |
|
127 | |||
132 | /*! |
|
128 | /*! | |
133 | \qmlproperty Margins ChartView::minimumMargins |
|
129 | \qmlproperty Margins ChartView::minimumMargins | |
|
130 | Deprecated; use margins instead. | |||
134 | The minimum margins allowed between the outer bounds and the plotArea of the ChartView. Margins |
|
131 | The minimum margins allowed between the outer bounds and the plotArea of the ChartView. Margins | |
135 | area of ChartView is used for drawing title, axes and legend. Please note that setting the |
|
132 | area of ChartView is used for drawing title, axes and legend. Please note that setting the | |
136 | properties of minimumMargins may be bigger than the defined value, depending on other ChartView |
|
133 | properties of minimumMargins may be bigger than the defined value, depending on other ChartView | |
@@ -146,6 +143,12 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||||
146 | */ |
|
143 | */ | |
147 |
|
144 | |||
148 | /*! |
|
145 | /*! | |
|
146 | \qmlproperty Margins ChartView::margins | |||
|
147 | The minimum margins allowed between the outer bounds and the plotArea of the ChartView. Margins | |||
|
148 | area of ChartView is used for drawing title, axes and legend. | |||
|
149 | */ | |||
|
150 | ||||
|
151 | /*! | |||
149 | \qmlmethod AbstractSeries ChartView::series(int index) |
|
152 | \qmlmethod AbstractSeries ChartView::series(int index) | |
150 | Returns the series with \a index on the chart. This allows you to loop through the series of a chart together with |
|
153 | Returns the series with \a index on the chart. This allows you to loop through the series of a chart together with | |
151 | the count property of the chart. |
|
154 | the count property of the chart. | |
@@ -489,27 +492,26 bool DeclarativeChart::dropShadowEnabled() | |||||
489 |
|
492 | |||
490 | qreal DeclarativeChart::topMargin() |
|
493 | qreal DeclarativeChart::topMargin() | |
491 | { |
|
494 | { | |
492 |
qWarning() << "ChartView.topMargin is deprecated. Use m |
|
495 | qWarning() << "ChartView.topMargin is deprecated. Use margins instead."; | |
493 |
return m_chart-> |
|
496 | return m_chart->margins().top(); | |
494 | } |
|
497 | } | |
495 |
|
498 | |||
496 | qreal DeclarativeChart::bottomMargin() |
|
499 | qreal DeclarativeChart::bottomMargin() | |
497 | { |
|
500 | { | |
498 |
|
501 | qWarning() << "ChartView.bottomMargin is deprecated. Use margins instead."; | ||
499 | qWarning() << "ChartView.bottomMargin is deprecated. Use minimumMargins and plotArea instead."; |
|
502 | return m_chart->margins().bottom(); | |
500 | return m_chart->plotArea().bottom(); |
|
|||
501 | } |
|
503 | } | |
502 |
|
504 | |||
503 | qreal DeclarativeChart::leftMargin() |
|
505 | qreal DeclarativeChart::leftMargin() | |
504 | { |
|
506 | { | |
505 |
qWarning() << "ChartView.leftMargin is deprecated. Use m |
|
507 | qWarning() << "ChartView.leftMargin is deprecated. Use margins instead."; | |
506 |
return m_chart-> |
|
508 | return m_chart->margins().left(); | |
507 | } |
|
509 | } | |
508 |
|
510 | |||
509 | qreal DeclarativeChart::rightMargin() |
|
511 | qreal DeclarativeChart::rightMargin() | |
510 | { |
|
512 | { | |
511 |
qWarning() << "ChartView.rightMargin is deprecated. Use m |
|
513 | qWarning() << "ChartView.rightMargin is deprecated. Use margins instead."; | |
512 |
return m_chart-> |
|
514 | return m_chart->margins().right(); | |
513 | } |
|
515 | } | |
514 |
|
516 | |||
515 | void DeclarativeChart::zoom(qreal factor) |
|
517 | void DeclarativeChart::zoom(qreal factor) |
@@ -43,6 +43,7 class QTCOMMERCIALCHART_EXPORT QChart : public QGraphicsWidget | |||||
43 | Q_PROPERTY(bool backgroundVisible READ isBackgroundVisible WRITE setBackgroundVisible) |
|
43 | Q_PROPERTY(bool backgroundVisible READ isBackgroundVisible WRITE setBackgroundVisible) | |
44 | Q_PROPERTY(bool dropShadowEnabled READ isDropShadowEnabled WRITE setDropShadowEnabled) |
|
44 | Q_PROPERTY(bool dropShadowEnabled READ isDropShadowEnabled WRITE setDropShadowEnabled) | |
45 | Q_PROPERTY(QChart::AnimationOptions animationOptions READ animationOptions WRITE setAnimationOptions) |
|
45 | Q_PROPERTY(QChart::AnimationOptions animationOptions READ animationOptions WRITE setAnimationOptions) | |
|
46 | Q_PROPERTY(QMargins minimumMargins READ minimumMargins WRITE setMinimumMargins) | |||
46 | Q_PROPERTY(QMargins margins READ margins WRITE setMargins) |
|
47 | Q_PROPERTY(QMargins margins READ margins WRITE setMargins) | |
47 | Q_ENUMS(ChartTheme) |
|
48 | Q_ENUMS(ChartTheme) | |
48 | Q_ENUMS(AnimationOption) |
|
49 | Q_ENUMS(AnimationOption) |
General Comments 0
You need to be logged in to leave comments.
Login now