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

Function updateVariableStatus

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

Source from the content-addressed store, hash-verified

191}
192
193static void updateVariableStatus(QTableWidget *table)
194{
195 for (int row = 0; row < table->rowCount(); row++) {
196 auto item = table->item(row, 0);
197 if (!item) {
198 continue;
199 }
200
201 auto weakVariable = GetWeakVariableByQString(item->text());
202 auto variable = weakVariable.lock();
203 if (!variable) {
204 continue;
205 }
206
207 UpdateItemTableRow(table, row,
208 getCellLabels(variable.get(), false));
209
210 // Special tooltip handling for the "last used" cell
211 const auto lastUsedItem = table->item(row, 4);
212 if (!lastUsedItem) {
213 continue;
214 }
215 const auto lastUsedTooltip =
216 formatLastChangedTooltip(variable.get());
217 lastUsedItem->setToolTip(lastUsedTooltip);
218 }
219}
220
221static void openSettingsDialog(VariableTable *table)
222{

Callers 1

VariableTableMethod · 0.85

Calls 7

GetWeakVariableByQStringFunction · 0.85
UpdateItemTableRowFunction · 0.85
formatLastChangedTooltipFunction · 0.85
rowCountMethod · 0.80
getCellLabelsFunction · 0.70
getMethod · 0.45
setToolTipMethod · 0.45

Tested by

no test coverage detected