From 2f7cfca59b74f070f2b9c55cda7bc2d74ec1e509 Mon Sep 17 00:00:00 2001 From: adityapk00 Date: Thu, 31 Jan 2019 20:05:59 -0800 Subject: [PATCH] Show address usage as tooltip --- src/mainwindow.cpp | 5 ++--- src/mainwindow.ui | 32 +++++++++----------------------- 2 files changed, 11 insertions(+), 26 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index da2086b..e48870b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1242,7 +1242,6 @@ void MainWindow::setupRecieveTab() { ui->rcvBal->clear(); ui->txtRecieve->clear(); ui->qrcodeDisplay->clear(); - ui->lblUsed->clear(); return; } @@ -1259,9 +1258,9 @@ void MainWindow::setupRecieveTab() { ui->txtRecieve->setPlainText(addr); ui->qrcodeDisplay->setAddress(addr); if (rpc->getUsedAddresses()->value(addr, false)) { - ui->lblUsed->setText(tr("Address has been previously used")); + ui->rcvBal->setToolTip(tr("Address has been previously used")); } else { - ui->lblUsed->setText(tr("Address is unused")); + ui->rcvBal->setToolTip(tr("Address is unused")); } }); diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 7e758d1..2976f41 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -346,8 +346,8 @@ 0 0 - 920 - 334 + 928 + 380 @@ -739,17 +739,7 @@ - - - - Address - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - - + @@ -773,17 +763,13 @@ - - + + - Address used + Address - - - - - - + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop @@ -992,7 +978,7 @@ 0 0 968 - 22 + 19