summaryrefslogtreecommitdiff
path: root/quacker/movebox.cpp
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-08-21 15:12:03 -0400
committerpommicket <pommicket@gmail.com>2025-08-21 15:12:03 -0400
commitf7bba783ccf693ccb92c870562931ef3377852f0 (patch)
tree826dddad51b29e1ed7d475f21ecc1f0fe5bd8ea6 /quacker/movebox.cpp
parent4702e6bb96ed5f943039956224b8a5e28d862c75 (diff)
"Generated moves only" checkbox
Diffstat (limited to 'quacker/movebox.cpp')
-rw-r--r--quacker/movebox.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/quacker/movebox.cpp b/quacker/movebox.cpp
index 5ca9572..813fd91 100644
--- a/quacker/movebox.cpp
+++ b/quacker/movebox.cpp
@@ -175,8 +175,12 @@ void MoveBox::setMoves(const Quackle::MoveList &moves, const Quackle::Move &sele
{
if (mapIt.key() == *it)
{
- mapIt.value()->setText(WinPercentageColumn, formatWinPercentage((*it).win));
- mapIt.value()->setText(EquityColumn, formatValuation((*it).equity));
+ QTreeWidgetItem *item = mapIt.value();
+ item->setText(WinPercentageColumn, formatWinPercentage((*it).win));
+ item->setText(EquityColumn, formatValuation((*it).equity));
+ for (int column = 0; column < m_treeWidget->columnCount(); column++) {
+ item->setToolTip(column, QString::fromStdString((*it).comment));
+ }
if (resorted)
{