diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-04-26 09:55:38 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-04-26 14:10:25 +0000 |
commit | 1448df4988763d163b6753f9afddbec7999aedd8 (patch) | |
tree | 2e5b588d706e822071b5edcd48dcb3c4bf66b634 /examples/charts/barchart | |
parent | d3f9275cbaa6a6059298ec248dd28dd6ef065e51 (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