@@ -368,6 +368,27 QLegend *QChart::legend() const | |||
|
368 | 368 | |
|
369 | 369 | /*! |
|
370 | 370 | Sets the minimum \a margins between the plot area (axes) and the edge of the chart widget. |
|
371 | Deprecated. Use setMargins(). | |
|
372 | */ | |
|
373 | void QChart::setMinimumMargins(const QMargins &margins) | |
|
374 | { | |
|
375 | qWarning() << "QChart::setMinimumMargins is deprecated. Use QChart::setMargins instead."; | |
|
376 | d_ptr->m_presenter->layout()->setMargins(margins); | |
|
377 | } | |
|
378 | ||
|
379 | /*! | |
|
380 | Returns the rect that contains information about margins (distance between chart widget edge and axes). | |
|
381 | Individual margins can be obtained by calling left, top, right, bottom on the returned rect. | |
|
382 | Deprecated. Use margins(). | |
|
383 | */ | |
|
384 | QMargins QChart::minimumMargins() const | |
|
385 | { | |
|
386 | qWarning() << "QChart::minimumMargins is deprecated. Use QChart::margins instead."; | |
|
387 | return d_ptr->m_presenter->layout()->margins(); | |
|
388 | } | |
|
389 | ||
|
390 | /*! | |
|
391 | Sets the minimum \a margins between the plot area (axes) and the edge of the chart widget. | |
|
371 | 392 | */ |
|
372 | 393 | void QChart::setMargins(const QMargins &margins) |
|
373 | 394 | { |
General Comments 0
You need to be logged in to leave comments.
Login now