Let’s say that I have 3 items in a ComboBox, and they’re all named the same “The item”. Only thing that separates them is item ID (which is not persistent) and section heading:
Heading 1 The item Heading 2 The item Heading 3 The item <- ticked!
Now, I want to persist the selection. Only way to do that is to save “Heading 3” + “The Item”. But currently there is no way to get the section heading from the ComboBox via id or index. So I’d like a getSectionHeader(const int itemIndex) and getSectionHeaderFromId(const int itemId).
That way I can get which one should be selected when loading my “document” again.