From 3beb470bbddb7f1e3eb5cb3bb96c424e815756fd Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 17 Nov 2020 23:40:46 +0100 Subject: [PATCH] DebugInfoDialog: add target height --- src/dialog/debuginfodialog.cpp | 2 ++ src/dialog/debuginfodialog.ui | 64 +++++++++++++++++++++------------- 2 files changed, 41 insertions(+), 25 deletions(-) diff --git a/src/dialog/debuginfodialog.cpp b/src/dialog/debuginfodialog.cpp index 8366f0e..7363387 100644 --- a/src/dialog/debuginfodialog.cpp +++ b/src/dialog/debuginfodialog.cpp @@ -30,6 +30,7 @@ DebugInfoDialog::DebugInfoDialog(AppContext *ctx, QWidget *parent) ui->label_walletHeight->setText(QString::number(ctx->currentWallet->blockChainHeight())); ui->label_daemonHeight->setText(QString::number(ctx->currentWallet->daemonBlockChainHeight())); + ui->label_targetHeight->setText(QString::number(ctx->currentWallet->daemonBlockChainTargetHeight())); ui->label_restoreHeight->setText(QString::number(ctx->currentWallet->getWalletCreationHeight())); ui->label_synchronized->setText(ctx->currentWallet->synchronized() ? "True" : "False"); @@ -77,6 +78,7 @@ void DebugInfoDialog::copyToClipboad() { text += QString("Wallet height: %1\n").arg(ui->label_walletHeight->text()); text += QString("Daemon height: %1\n").arg(ui->label_daemonHeight->text()); + text += QString("Target height: %1\n").arg(ui->label_targetHeight->text()); text += QString("Restore height: %1\n").arg(ui->label_restoreHeight->text()); text += QString("Synchronized: %1\n").arg(ui->label_synchronized->text()); diff --git a/src/dialog/debuginfodialog.ui b/src/dialog/debuginfodialog.ui index 3ee8f59..a613e6c 100644 --- a/src/dialog/debuginfodialog.ui +++ b/src/dialog/debuginfodialog.ui @@ -91,14 +91,14 @@ - + Restore height: - + TextLabel @@ -108,14 +108,14 @@ - + Synchronized: - + TextLabel @@ -125,21 +125,21 @@ - + Qt::Horizontal - + Remote node: - + TextLabel @@ -149,14 +149,14 @@ - + Wallet status: - + TextLabel @@ -166,14 +166,14 @@ - + Tor status: - + TextLabel @@ -183,14 +183,14 @@ - + Websocket status: - + TextLabel @@ -200,21 +200,21 @@ - + Qt::Horizontal - + Network type: - + TextLabel @@ -224,14 +224,14 @@ - + Seed type: - + TextLabel @@ -241,14 +241,14 @@ - + View only: - + TextLabel @@ -258,14 +258,14 @@ - + Timestamp: - + TextLabel @@ -275,14 +275,14 @@ - + Operating system: - + TextLabel @@ -292,13 +292,27 @@ - + Qt::Horizontal + + + + Target height: + + + + + + + TextLabel + + +