MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / formatLastChangedTooltip

Function formatLastChangedTooltip

lib/variables/variable-tab.cpp:166–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166static QString formatLastChangedTooltip(Variable *variable)
167{
168 auto lastChanged = variable->GetSecondsSinceLastChange();
169 if (!lastChanged) {
170 return QString();
171 }
172
173 QString tooltip = obs_module_text(
174 "AdvSceneSwitcher.variableTab.lastChanged.tooltip");
175 return tooltip.arg(QString::number(variable->GetValueChangeCount()))
176 .arg(QString::fromStdString(variable->GetPreviousValue()));
177}
178
179static QStringList getCellLabels(Variable *variable, bool addName = true)
180{

Callers 1

updateVariableStatusFunction · 0.85

Calls 4

obs_module_textFunction · 0.85
GetValueChangeCountMethod · 0.80
GetPreviousValueMethod · 0.80

Tested by

no test coverage detected