MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / lstOptionsMouseOver

Method lstOptionsMouseOver

src/Menu/OptionsAdvancedState.cpp:255–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void OptionsAdvancedState::lstOptionsMouseOver(Action *)
256{
257 size_t sel = _lstOptions->getSelectedRow();
258 OptionInfo *setting = getSetting(sel);
259 std::wstring desc;
260 if (setting)
261 {
262 desc = tr(setting->description() + "_DESC");
263 }
264 _txtTooltip->setText(desc.c_str());
265}
266
267void OptionsAdvancedState::lstOptionsMouseOut(Action *)
268{

Callers

nothing calls this directly

Calls 3

getSelectedRowMethod · 0.80
descriptionMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected