MCPcopy Create free account
hub / github.com/MyGUI/mygui / invalidateSelection

Method invalidateSelection

Tools/EditorFramework/ListBoxDataControl.cpp:113–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 void ListBoxDataControl::invalidateSelection()
114 {
115 if (mParentData != nullptr)
116 {
117 size_t currentIndex = mListBox->getIndexSelected();
118 DataPtr selection =
119 currentIndex != MyGUI::ITEM_NONE ? *mListBox->getItemDataAt<DataPtr>(currentIndex) : nullptr;
120
121 if (selection != mParentData->getChildSelected())
122 selectListItemByData(mParentData->getChildSelected());
123 }
124 }
125
126 void ListBoxDataControl::selectListItemByData(DataPtr _data)
127 {

Callers

nothing calls this directly

Calls 2

getChildSelectedMethod · 0.80
getIndexSelectedMethod · 0.45

Tested by

no test coverage detected