mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-28 04:52:36 +02:00
Merge gui_peers_no_net_column
This commit is contained in:
commit
56925da3ae
@ -54,11 +54,11 @@ public:
|
|||||||
Direction,
|
Direction,
|
||||||
Address,
|
Address,
|
||||||
ConnectionType,
|
ConnectionType,
|
||||||
Network,
|
|
||||||
Ping,
|
Ping,
|
||||||
Sent,
|
Sent,
|
||||||
Received,
|
Received,
|
||||||
Subversion
|
Subversion,
|
||||||
|
Network, // Not used, just kept at the end to avoid excessive code removal
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
@ -100,9 +100,6 @@ private:
|
|||||||
/*: Title of Peers Table column which describes the type of
|
/*: Title of Peers Table column which describes the type of
|
||||||
peer connection. The "type" describes why the connection exists. */
|
peer connection. The "type" describes why the connection exists. */
|
||||||
tr("Type"),
|
tr("Type"),
|
||||||
/*: Title of Peers Table column which states the network the peer
|
|
||||||
connected through. */
|
|
||||||
tr("Network"),
|
|
||||||
/*: Title of Peers Table column which indicates the current latency
|
/*: Title of Peers Table column which indicates the current latency
|
||||||
of the connection with the peer. */
|
of the connection with the peer. */
|
||||||
tr("Ping"),
|
tr("Ping"),
|
||||||
|
@ -771,7 +771,6 @@ void RPCConsole::setClientModel(ClientModel *model, int bestblock_height, int64_
|
|||||||
ui->peerWidget->setColumnWidth(PeerTableModel::Address, ADDRESS_COLUMN_WIDTH);
|
ui->peerWidget->setColumnWidth(PeerTableModel::Address, ADDRESS_COLUMN_WIDTH);
|
||||||
ui->peerWidget->setColumnWidth(PeerTableModel::ConnectionType, GUIUtil::TextWidth(fm, GUIUtil::ConnectionTypeToQString(ConnectionType::ADDR_FETCH /* TODO: Find the WIDEST string? */, /*prepend_direction=*/false)));
|
ui->peerWidget->setColumnWidth(PeerTableModel::ConnectionType, GUIUtil::TextWidth(fm, GUIUtil::ConnectionTypeToQString(ConnectionType::ADDR_FETCH /* TODO: Find the WIDEST string? */, /*prepend_direction=*/false)));
|
||||||
const auto bytesize_width = GUIUtil::TextWidth(fm, GUIUtil::formatBytes(999'000'000'000) + QStringLiteral("x"));
|
const auto bytesize_width = GUIUtil::TextWidth(fm, GUIUtil::formatBytes(999'000'000'000) + QStringLiteral("x"));
|
||||||
ui->peerWidget->setColumnWidth(PeerTableModel::Network, GUIUtil::TextWidth(fm, qvariant_cast<QString>(model->peerTableSortProxy()->headerData(PeerTableModel::ColumnIndex::Network, Qt::Horizontal, Qt::DisplayRole)) /* TODO: Find the WIDEST string? */ + QStringLiteral("x")));
|
|
||||||
ui->peerWidget->setColumnWidth(PeerTableModel::Subversion, SUBVERSION_COLUMN_WIDTH);
|
ui->peerWidget->setColumnWidth(PeerTableModel::Subversion, SUBVERSION_COLUMN_WIDTH);
|
||||||
ui->peerWidget->setColumnWidth(PeerTableModel::Ping, PING_COLUMN_WIDTH);
|
ui->peerWidget->setColumnWidth(PeerTableModel::Ping, PING_COLUMN_WIDTH);
|
||||||
ui->peerWidget->setColumnWidth(PeerTableModel::Sent, bytesize_width);
|
ui->peerWidget->setColumnWidth(PeerTableModel::Sent, bytesize_width);
|
||||||
|
Loading…
Reference in New Issue
Block a user