From 0e5bf8b50f7cbaad192c78be675d6af5fb63952a Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Sun, 26 Apr 2020 16:36:42 -0400 Subject: [PATCH] Added detail to tooltip for call activity --- mainwindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 09daa8f..6619da3 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -12518,7 +12518,12 @@ void MainWindow::displayCallActivity() { auto iconItem = new QTableWidgetItem(hasMessage ? "\u2691" : hasACK ? "\u2605" : hasCQ ? "\u260E" : hasThrough ? "\u269F" : ""); iconItem->setData(Qt::UserRole, QVariant(d.call)); - iconItem->setToolTip(hasMessage ? "Message Available" : hasACK ? "Hearing Your Station" : hasCQ ? "Calling CQ" : hasThrough ? QString("Heard Through %1 Relay)").arg(d.through) : ""); + iconItem->setToolTip( + hasMessage ? "Message Available" : + hasACK ? QString("Hearing Your Station (%1)").arg(since(d.ackTimestamp)) : + hasCQ ? QString("Calling CQ (%1)").arg(since(d.cqTimestamp)) : + hasThrough ? QString("Heard Through Relay (%1)").arg(d.through) : + ""); iconItem->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter); ui->tableWidgetCalls->setItem(row, col++, iconItem); if(hasMessage || hasACK || hasCQ || hasThrough){