summaryrefslogtreecommitdiffstats
path: root/examples/charts/barchart
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-04-26 09:55:38 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-04-26 14:10:25 +0000
commit1448df4988763d163b6753f9afddbec7999aedd8 (patch)
tree2e5b588d706e822071b5edcd48dcb3c4bf66b634 /examples/charts/barchart
parentd3f9275cbaa6a6059298ec248dd28dd6ef065e51 (diff)
Maintain correct order of legend items when inserting pie chart items
Rewrite QLegendPrivate::handleCountChanged() so that the order of the markers is preserved. Split out helper functions for insertion/removal that leave the m_markers list untouched and add helpers for finding markers by series and related objects. In QLegendPrivate::handleCountChanged(), remove the markers of the series from m_markers and replace the existing ones in the createdMarkers. Finally re-insert createdMarkers into m_markers, preserving the order. Task-number: QTBUG-62082 Change-Id: I03c81dcf5dfd5a5883377630cad16c943503a1be Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'examples/charts/barchart')
0 files changed, 0 insertions, 0 deletions