##// 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 244 if (success) {
245 245 QList<QBarSet*> sets;
246 246 sets.append(set);
247 set->setParent(this);
247 248 emit barsetsAdded(sets);
248 249 emit countChanged();
249 250 }
@@ -261,6 +262,7 bool QAbstractBarSeries::remove(QBarSet *set)
261 262 if (success) {
262 263 QList<QBarSet*> sets;
263 264 sets.append(set);
265 set->setParent(0);
264 266 emit barsetsRemoved(sets);
265 267 emit countChanged();
266 268 }
General Comments 0
You need to be logged in to leave comments. Login now