aboutsummaryrefslogtreecommitdiff
path: root/src/qt/rpcconsole.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2013-11-08 08:13:08 +0100
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2013-11-08 09:18:32 +0100
commit91163c15f64e5bbf75e41defb721ba4a5e3b412b (patch)
tree0bf7c64cb233f23d134bc86ace5c97bc481a2570 /src/qt/rpcconsole.cpp
parentb744fdbf52b6d050e7f8a86f01e43cd18e9fd658 (diff)
downloadbitcoin-91163c15f64e5bbf75e41defb721ba4a5e3b412b.tar.xz
[Qt] rename rpcconsole window
- rework window title to not include Bitcoin - in front, as no other dialog does this - favor a connect() call over an own function for clearing the traffic graph - write monospace lowercase (seems to be correct after some web search) and add a comment that we should avoid / remove fixed font sizes
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r--src/qt/rpcconsole.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index 64ae5ab08c..05bc460ab0 100644
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -205,6 +205,7 @@ RPCConsole::RPCConsole(QWidget *parent) :
ui->messagesWidget->installEventFilter(this);
connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clear()));
+ connect(ui->btnClearTrafficGraph, SIGNAL(clicked()), ui->trafficGraph, SLOT(clear()));
// set OpenSSL version label
ui->openSSLVersion->setText(SSLeay_version(SSLEAY_VERSION));
@@ -317,7 +318,7 @@ void RPCConsole::clear()
ui->messagesWidget->document()->setDefaultStyleSheet(
"table { }"
"td.time { color: #808080; padding-top: 3px; } "
- "td.message { font-family: Monospace; font-size: 12px; } "
+ "td.message { font-family: monospace; font-size: 12px; } " // Todo: Remove fixed font-size
"td.cmd-request { color: #006060; } "
"td.cmd-error { color: red; } "
"b { color: #006060; } "
@@ -483,8 +484,3 @@ void RPCConsole::updateTrafficStats(quint64 totalBytesIn, quint64 totalBytesOut)
ui->lblBytesIn->setText(FormatBytes(totalBytesIn));
ui->lblBytesOut->setText(FormatBytes(totalBytesOut));
}
-
-void RPCConsole::on_btnClearTrafficGraph_clicked()
-{
- ui->trafficGraph->clear();
-}