Re-add tooltips for the "last used" cells on the variable tab

This commit is contained in:
WarmUpTill 2024-05-25 23:08:53 +02:00 committed by WarmUpTill
parent 1f1ef4ca03
commit 91c053dfd8

View File

@ -154,6 +154,15 @@ static void updateVariableStatus(QTableWidget *table)
UpdateItemTableRow(table, row,
getCellLabels(variable.get(), false));
// Special tooltip handling for the "last used" cell
const auto lastUsedItem = table->item(row, 4);
if (!lastUsedItem) {
continue;
}
const auto lastUsedTooltip =
formatLastChangedTooltip(variable.get());
lastUsedItem->setToolTip(lastUsedTooltip);
}
}