Merge pull request #3222 from Diapolo/debug-window

[Qt] rename rpcconsole window
This commit is contained in:
Wladimir J. van der Laan 2013-11-08 00:32:43 -08:00
commit 7f0ccea768
3 changed files with 4 additions and 9 deletions

View file

@ -11,7 +11,7 @@
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Bitcoin - Debug window</string> <string>Debug window</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2">
<item> <item>

View file

@ -205,6 +205,7 @@ RPCConsole::RPCConsole(QWidget *parent) :
ui->messagesWidget->installEventFilter(this); ui->messagesWidget->installEventFilter(this);
connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clear())); connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clear()));
connect(ui->btnClearTrafficGraph, SIGNAL(clicked()), ui->trafficGraph, SLOT(clear()));
// set OpenSSL version label // set OpenSSL version label
ui->openSSLVersion->setText(SSLeay_version(SSLEAY_VERSION)); ui->openSSLVersion->setText(SSLeay_version(SSLEAY_VERSION));
@ -317,7 +318,7 @@ void RPCConsole::clear()
ui->messagesWidget->document()->setDefaultStyleSheet( ui->messagesWidget->document()->setDefaultStyleSheet(
"table { }" "table { }"
"td.time { color: #808080; padding-top: 3px; } " "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-request { color: #006060; } "
"td.cmd-error { color: red; } " "td.cmd-error { color: red; } "
"b { color: #006060; } " "b { color: #006060; } "
@ -483,8 +484,3 @@ void RPCConsole::updateTrafficStats(quint64 totalBytesIn, quint64 totalBytesOut)
ui->lblBytesIn->setText(FormatBytes(totalBytesIn)); ui->lblBytesIn->setText(FormatBytes(totalBytesIn));
ui->lblBytesOut->setText(FormatBytes(totalBytesOut)); ui->lblBytesOut->setText(FormatBytes(totalBytesOut));
} }
void RPCConsole::on_btnClearTrafficGraph_clicked()
{
ui->trafficGraph->clear();
}

View file

@ -45,8 +45,6 @@ private slots:
void on_sldGraphRange_valueChanged(int value); void on_sldGraphRange_valueChanged(int value);
/** update traffic statistics */ /** update traffic statistics */
void updateTrafficStats(quint64 totalBytesIn, quint64 totalBytesOut); void updateTrafficStats(quint64 totalBytesIn, quint64 totalBytesOut);
/** clear traffic graph */
void on_btnClearTrafficGraph_clicked();
public slots: public slots:
void clear(); void clear();
@ -59,6 +57,7 @@ public slots:
void browseHistory(int offset); void browseHistory(int offset);
/** Scroll console view to end */ /** Scroll console view to end */
void scrollToEnd(); void scrollToEnd();
signals: signals:
// For RPC command executor // For RPC command executor
void stopExecutor(); void stopExecutor();