summaryrefslogtreecommitdiff
path: root/quacker/movebox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quacker/movebox.cpp')
-rw-r--r--quacker/movebox.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/quacker/movebox.cpp b/quacker/movebox.cpp
index ae6c2f5..9370fdb 100644
--- a/quacker/movebox.cpp
+++ b/quacker/movebox.cpp
@@ -262,7 +262,12 @@ QTreeWidgetItem *MoveBox::createItem(const Quackle::Move &move)
item->setText(LeaveColumn, QuackleIO::Util::letterStringToQString(QuackleIO::Util::arrangeLettersForUser(m_rack - move)));
item->setText(WinPercentageColumn, formatWinPercentage(move.win));
item->setText(EquityColumn, formatValuation(move.equity));
-
+ if (!move.outcomes.empty()) {
+ // show Macondo pre-endgame outcomes when item is hovered over
+ for (int column = 0; column < m_treeWidget->columnCount(); column++) {
+ item->setToolTip(column, QString::fromStdString(move.outcomes));
+ }
+ }
return item;
}