##// END OF EJS Templates
Bugfix no geometry call when axis removed and added again
Michal Klocek -
r259:dfda127abd04
parent child
Show More
@@ -172,6 +172,7 void AxisItem::handleLabelsChanged(QChartAxis* axis,const QStringList& labels)
172 clear();
172 clear();
173 m_thicksList=labels;
173 m_thicksList=labels;
174 createItems(m_thicksList.size());
174 createItems(m_thicksList.size());
175 updateItem(m_thicksList.size());
175 items = m_labels.childItems();
176 items = m_labels.childItems();
176 handleAxisUpdate(axis);
177 handleAxisUpdate(axis);
177 }
178 }
@@ -84,6 +84,9 void ChartPresenter::handleAxisAdded(QChartAxis* axis)
84 }
84 }
85 QObject::connect(this,SIGNAL(geometryChanged(const QRectF&)),item,SLOT(handleGeometryChanged(const QRectF&)));
85 QObject::connect(this,SIGNAL(geometryChanged(const QRectF&)),item,SLOT(handleGeometryChanged(const QRectF&)));
86 QObject::connect(axis,SIGNAL(update(QChartAxis*)),item,SLOT(handleAxisUpdate(QChartAxis*)));
86 QObject::connect(axis,SIGNAL(update(QChartAxis*)),item,SLOT(handleAxisUpdate(QChartAxis*)));
87
88 item->handleAxisUpdate(axis);
89 item->handleGeometryChanged(m_rect);
87 m_chartTheme->decorate(axis,item);
90 m_chartTheme->decorate(axis,item);
88 m_axisItems.insert(axis,item);
91 m_axisItems.insert(axis,item);
89 }
92 }
General Comments 0
You need to be logged in to leave comments. Login now