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

Method txtTooltipIn

src/Menu/OptionsBaseState.cpp:321–325  ·  view source on GitHub ↗

* Shows a tooltip for the appropriate button. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

319* @param action Pointer to an action.
320*/
321void OptionsBaseState::txtTooltipIn(Action *action)
322{
323 _currentTooltip = action->getSender()->getTooltip();
324 _txtTooltip->setText(tr(_currentTooltip));
325}
326
327/**
328* Clears the tooltip text.

Callers

nothing calls this directly

Calls 3

getTooltipMethod · 0.80
getSenderMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected