From 5944540a81280044b0c9341cd360d31f26d30cb6 Mon Sep 17 00:00:00 2001 From: svost Date: Thu, 2 Feb 2017 09:22:26 +0300 Subject: [PATCH] Remove 'estimated total blocks' field from gui --- src/qt/forms/rpcconsole.ui | 309 ++++++++++++++++++++------------------------ src/qt/rpcconsole.cpp | 2 - 2 files changed, 143 insertions(+), 168 deletions(-) diff --git a/src/qt/forms/rpcconsole.ui b/src/qt/forms/rpcconsole.ui index f5b50f6..a52cd0a 100644 --- a/src/qt/forms/rpcconsole.ui +++ b/src/qt/forms/rpcconsole.ui @@ -7,7 +7,7 @@ 0 0 740 - 450 + 514 @@ -24,21 +24,21 @@ &Information - - - - - 75 - true - + + + + Open the NovaCoin debug log file from the current data directory. This can take a few seconds for large log files. - Configuration file + &Open + + + false - - + + IBeamCursor @@ -53,15 +53,28 @@ - - + + + + + 75 + true + + - Current number of blocks + Command-line options - - + + + + On testnet + + + + + IBeamCursor @@ -76,8 +89,15 @@ - - + + + + Number of connections + + + + + 75 @@ -85,50 +105,44 @@ - Command-line options + Block chain - - - - Open the NovaCoin debug log file from the current data directory. This can take a few seconds for large log files. + + + + false - &Open - - - false + - - - - - 75 - true - + + + + IBeamCursor - Debug log file + N/A + + + Qt::PlainText + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse - - - - Qt::Horizontal - - - - 404 - 20 - + + + + Current number of blocks - + - + Qt::Vertical @@ -141,7 +155,7 @@ - + Show the NovaCoin-Qt help message to get a list with possible NovaCoin command-line options. @@ -154,7 +168,7 @@ - + Last block time @@ -174,8 +188,8 @@ - - + + IBeamCursor @@ -190,22 +204,35 @@ - - + + - Startup time + Client version - - + + - On testnet + Client name - - + + + + + 75 + true + + + + NovaCoin Core + + + + + IBeamCursor @@ -220,15 +247,34 @@ - - + + + + Qt::Vertical + + + + 20 + 20 + + + + + + + + Open the NovaCoin configuration file from the current data directory. + - Number of connections + O&pen + + + false - - + + 75 @@ -236,29 +282,25 @@ - Block chain + Debug log file - - - - false - - - + + + + Qt::Horizontal - - - - - - Estimated total blocks + + + 404 + 20 + - + - - + + IBeamCursor @@ -273,6 +315,26 @@ + + + + Startup time + + + + + + + + 75 + true + + + + Configuration file + + + @@ -348,91 +410,6 @@ - - - - IBeamCursor - - - N/A - - - Qt::PlainText - - - Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse - - - - - - - Client version - - - - - - - - 75 - true - - - - NovaCoin Core - - - - - - - IBeamCursor - - - N/A - - - Qt::PlainText - - - Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse - - - - - - - Client name - - - - - - - Qt::Vertical - - - - 20 - 20 - - - - - - - - Open the NovaCoin configuration file from the current data directory. - - - O&pen - - - false - - - diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index c793bf9..1c86ddd 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -360,11 +360,9 @@ void RPCConsole::setNumConnections(int count) void RPCConsole::setNumBlocks(int count, int countOfPeers) { ui->numberOfBlocks->setText(QString::number(count)); - ui->totalBlocks->setText(QString::number(countOfPeers)); if(clientModel) { // If there is no current number available display N/A instead of 0, which can't ever be true - ui->totalBlocks->setText(clientModel->getNumBlocksOfPeers() == 0 ? tr("N/A") : QString::number(clientModel->getNumBlocksOfPeers())); ui->lastBlockTime->setText(clientModel->getLastBlockDate().toString()); } } -- 1.7.1