##// END OF EJS Templates
fixed barset ownership when adding/removing sets
sauimone -
r1787:23355e78c422
parent child
Show More
@@ -244,6 +244,7 bool QAbstractBarSeries::append(QBarSet *set)
244 if (success) {
244 if (success) {
245 QList<QBarSet*> sets;
245 QList<QBarSet*> sets;
246 sets.append(set);
246 sets.append(set);
247 set->setParent(this);
247 emit barsetsAdded(sets);
248 emit barsetsAdded(sets);
248 emit countChanged();
249 emit countChanged();
249 }
250 }
@@ -261,6 +262,7 bool QAbstractBarSeries::remove(QBarSet *set)
261 if (success) {
262 if (success) {
262 QList<QBarSet*> sets;
263 QList<QBarSet*> sets;
263 sets.append(set);
264 sets.append(set);
265 set->setParent(0);
264 emit barsetsRemoved(sets);
266 emit barsetsRemoved(sets);
265 emit countChanged();
267 emit countChanged();
266 }
268 }
General Comments 0
You need to be logged in to leave comments. Login now