Changeset View
Changeset View
Standalone View
Standalone View
src/qt/rpcconsole.cpp
Show First 20 Lines • Show All 976 Lines • ▼ Show 20 Lines | void RPCConsole::message(int category, const QString &message, bool html) { | ||||
} | } | ||||
out += "</td></tr></table>"; | out += "</td></tr></table>"; | ||||
ui->messagesWidget->append(out); | ui->messagesWidget->append(out); | ||||
} | } | ||||
void RPCConsole::updateNetworkState() { | void RPCConsole::updateNetworkState() { | ||||
QString connections = | QString connections = | ||||
QString::number(clientModel->getNumConnections()) + " ("; | QString::number(clientModel->getNumConnections()) + " ("; | ||||
connections += | connections += tr("In:") + " " + | ||||
tr("In:") + " " + | QString::number(clientModel->getNumConnections( | ||||
QString::number(clientModel->getNumConnections(CONNECTIONS_IN)) + " / "; | ClientModel::CONNECTIONS_IN)) + | ||||
connections += | " / "; | ||||
tr("Out:") + " " + | connections += tr("Out:") + " " + | ||||
QString::number(clientModel->getNumConnections(CONNECTIONS_OUT)) + ")"; | QString::number(clientModel->getNumConnections( | ||||
ClientModel::CONNECTIONS_OUT)) + | |||||
")"; | |||||
if (!clientModel->node().getNetworkActive()) { | if (!clientModel->node().getNetworkActive()) { | ||||
connections += " (" + tr("Network activity disabled") + ")"; | connections += " (" + tr("Network activity disabled") + ")"; | ||||
} | } | ||||
ui->numberOfConnections->setText(connections); | ui->numberOfConnections->setText(connections); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 452 Lines • Show Last 20 Lines |