From 91c053dfd83d2aac04fb3210c9fcac3c344c0ff7 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sat, 25 May 2024 23:08:53 +0200 Subject: [PATCH] Re-add tooltips for the "last used" cells on the variable tab --- lib/variables/variable-tab.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/variables/variable-tab.cpp b/lib/variables/variable-tab.cpp index 73be6dee..98fb14c0 100644 --- a/lib/variables/variable-tab.cpp +++ b/lib/variables/variable-tab.cpp @@ -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); } }