From 54bd28fa758d9753464b3eb07d203521b50de1c6 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Thu, 6 Aug 2015 15:40:50 +0200 Subject: [Qt] show client user agent in debug window --- src/qt/clientmodel.cpp | 5 ++++ src/qt/clientmodel.h | 1 + src/qt/forms/rpcconsole.ui | 68 ++++++++++++++++++++++++++++++++-------------- src/qt/rpcconsole.cpp | 2 +- 4 files changed, 54 insertions(+), 22 deletions(-) (limited to 'src') diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index 41dc2ea77e..97d6711560 100644 --- a/src/qt/clientmodel.cpp +++ b/src/qt/clientmodel.cpp @@ -181,6 +181,11 @@ QString ClientModel::formatFullVersion() const return QString::fromStdString(FormatFullVersion()); } +QString ClientModel::formatSubVersion() const +{ + return QString::fromStdString(strSubVersion); +} + QString ClientModel::formatBuildDate() const { return QString::fromStdString(CLIENT_DATE); diff --git a/src/qt/clientmodel.h b/src/qt/clientmodel.h index 68434f404c..ca2da3dde0 100644 --- a/src/qt/clientmodel.h +++ b/src/qt/clientmodel.h @@ -63,6 +63,7 @@ public: QString getStatusBarWarnings() const; QString formatFullVersion() const; + QString formatSubVersion() const; QString formatBuildDate() const; bool isReleaseVersion() const; QString clientName() const; diff --git a/src/qt/forms/rpcconsole.ui b/src/qt/forms/rpcconsole.ui index 7ae8237476..e8d9a958ad 100644 --- a/src/qt/forms/rpcconsole.ui +++ b/src/qt/forms/rpcconsole.ui @@ -87,6 +87,32 @@ + + + User Agent + + + 10 + + + + + + + IBeamCursor + + + N/A + + + Qt::PlainText + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + + Using OpenSSL version @@ -96,7 +122,7 @@ - + IBeamCursor @@ -112,7 +138,7 @@ - + Using BerkeleyDB version @@ -122,7 +148,7 @@ - + IBeamCursor @@ -138,14 +164,14 @@ - + Build date - + IBeamCursor @@ -161,14 +187,14 @@ - + Startup time - + IBeamCursor @@ -184,7 +210,7 @@ - + @@ -197,14 +223,14 @@ - + Name - + IBeamCursor @@ -220,14 +246,14 @@ - + Number of connections - + IBeamCursor @@ -243,7 +269,7 @@ - + @@ -256,14 +282,14 @@ - + Current number of blocks - + IBeamCursor @@ -279,14 +305,14 @@ - + Last block time - + IBeamCursor @@ -302,7 +328,7 @@ - + Qt::Vertical @@ -315,7 +341,7 @@ - + @@ -328,7 +354,7 @@ - + Open the Bitcoin Core debug log file from the current data directory. This can take a few seconds for large log files. @@ -341,7 +367,7 @@ - + Qt::Vertical diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 3231b392f2..35729bbb8b 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -330,10 +330,10 @@ void RPCConsole::setClientModel(ClientModel *model) // Provide initial values ui->clientVersion->setText(model->formatFullVersion()); + ui->clientUserAgent->setText(model->formatSubVersion()); ui->clientName->setText(model->clientName()); ui->buildDate->setText(model->formatBuildDate()); ui->startupTime->setText(model->formatClientStartupTime()); - ui->networkName->setText(QString::fromStdString(Params().NetworkIDString())); } } -- cgit v1.2.3