From f527fc103139dee9db1360476b32b5337ac40465 Mon Sep 17 00:00:00 2001 From: "James C. Owens" Date: Mon, 30 Oct 2023 00:27:31 -0400 Subject: [PATCH] Update poll card to show stale indicator --- src/qt/forms/voting/pollcard.ui | 7 +++++++ src/qt/voting/pollcard.cpp | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/src/qt/forms/voting/pollcard.ui b/src/qt/forms/voting/pollcard.ui index 112505846d..2bad4f8d81 100644 --- a/src/qt/forms/voting/pollcard.ui +++ b/src/qt/forms/voting/pollcard.ui @@ -298,6 +298,13 @@ + + + + Stale + + + diff --git a/src/qt/voting/pollcard.cpp b/src/qt/voting/pollcard.cpp index b08df8c9e6..6680209bdd 100644 --- a/src/qt/voting/pollcard.cpp +++ b/src/qt/voting/pollcard.cpp @@ -83,6 +83,12 @@ PollCard::PollCard(const PollItem& poll_item, QWidget* parent) ui->invalidLabel->show(); } + if (poll_item.m_stale) { + ui->staleLabel->show(); + } else { + ui->staleLabel->hide(); + } + ui->topAnswerLabel->setText(poll_item.m_top_answer); if (!poll_item.m_finished) {