@@ -46,6 +46,7 void AbstractChartLayout::setGeometry(const QRectF &rect) | |||
|
46 | 46 | if (!rect.isValid()) |
|
47 | 47 | return; |
|
48 | 48 | |
|
49 | if (m_presenter->chart()->isVisible()) { | |
|
49 | 50 | QList<ChartAxisElement *> axes = m_presenter->axisItems(); |
|
50 | 51 | ChartTitle *title = m_presenter->titleElement(); |
|
51 | 52 | QLegend *legend = m_presenter->legend(); |
@@ -68,6 +69,7 void AbstractChartLayout::setGeometry(const QRectF &rect) | |||
|
68 | 69 | static_cast<QGraphicsRectItem *>(m_presenter->plotAreaElement())->setRect(contentGeometry); |
|
69 | 70 | else |
|
70 | 71 | static_cast<QGraphicsEllipseItem *>(m_presenter->plotAreaElement())->setRect(contentGeometry); |
|
72 | } | |
|
71 | 73 | |
|
72 | 74 | QGraphicsLayout::setGeometry(rect); |
|
73 | 75 | } |
General Comments 0
You need to be logged in to leave comments.
Login now