Skip to content

Commit

Permalink
Merge pull request bitcoin#3222 from Diapolo/debug-window
Browse files Browse the repository at this point in the history
[Qt] rename rpcconsole window
  • Loading branch information
laanwj committed Nov 8, 2013
2 parents b744fdb + 91163c1 commit 7f0ccea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/qt/forms/rpcconsole.ui
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Bitcoin - Debug window</string>
<string>Debug window</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
Expand Down
8 changes: 2 additions & 6 deletions src/qt/rpcconsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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; } "
Expand Down Expand Up @@ -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();
}
3 changes: 1 addition & 2 deletions src/qt/rpcconsole.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ private slots:
void on_sldGraphRange_valueChanged(int value);
/** update traffic statistics */
void updateTrafficStats(quint64 totalBytesIn, quint64 totalBytesOut);
/** clear traffic graph */
void on_btnClearTrafficGraph_clicked();

public slots:
void clear();
Expand All @@ -59,6 +57,7 @@ public slots:
void browseHistory(int offset);
/** Scroll console view to end */
void scrollToEnd();

signals:
// For RPC command executor
void stopExecutor();
Expand Down

0 comments on commit 7f0ccea

Please sign in to comment.