[Qt] add BerkeleyDB version info to RPCConsole

- to match info function between debug.log and RPCConsole
This commit is contained in:
Philip Kaufmann
2014-06-04 22:00:59 +02:00
parent d48e7a9734
commit fe6bff2eae
2 changed files with 54 additions and 20 deletions

View File

@@ -15,7 +15,9 @@
#include "util.h"
#include "json/json_spirit_value.h"
#include <db_cxx.h>
#include <openssl/crypto.h>
#include <QKeyEvent>
#include <QScrollBar>
#include <QThread>
@@ -216,8 +218,14 @@ RPCConsole::RPCConsole(QWidget *parent) :
connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clear()));
connect(ui->btnClearTrafficGraph, SIGNAL(clicked()), ui->trafficGraph, SLOT(clear()));
// set OpenSSL version label
// set library version labels
ui->openSSLVersion->setText(SSLeay_version(SSLEAY_VERSION));
#ifdef ENABLE_WALLET
ui->berkeleyDBVersion->setText(DbEnv::version(0, 0, 0));
#else
ui->label_berkeleyDBVersion->hide();
ui->berkeleyDBVersion->hide();
#endif
startExecutor();
setTrafficGraphRange(INITIAL_TRAFFIC_GRAPH_MINS);