mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Merge bitcoin-core/gui#311: Peers Window rename 'Peer id' to 'Peer'
657b33ef2de77acd1061cdf4d1d64d0e086d75df qt: add translator comments for peers table columns (Jarol Rodriguez) 73a91c63ec72e62ef76fbc857baff14b099a1358 gui: rename "Peer Id" to "Peer" in tab column and details area (Jon Atack) Pull request description: Picking up https://github.com/bitcoin-core/gui/pull/290 **Original PR Description:** - renames the peers tab column header from `Peer Id` to `Peer` to allow resizing the column more tightly (this will be particularly useful after #256) and does the same for the peer details area. While here, we also add Qt translator comments for the Peer Table columns. | Master | PR | | ----------- | ----------- | | ![Screen Shot 2021-05-03 at 1 23 05 AM](https://user-images.githubusercontent.com/23396902/116843818-20a14b00-abaf-11eb-913e-ddff11cda5cd.png) | ![Screen Shot 2021-05-05 at 4 08 45 AM](https://user-images.githubusercontent.com/23396902/117112825-a2cc7380-ad57-11eb-939b-1aceb4214ad1.png) | ACKs for top commit: jonatack: utACK 657b33ef2de77acd1061cdf4d1d64d0e086d75df hebasto: re-ACK 657b33ef2de77acd1061cdf4d1d64d0e086d75df Tree-SHA512: f50116f7ca8719cadf1f95f45e3594b3b92bde9c43eb954f3e963ed10629dd9406efdb5e96aa1f750a926e24a96321d824ed3780bd9cd748774e0b85fd0c9535
This commit is contained in:
parent
dc498be3be
commit
3d2cea667b
@ -83,7 +83,28 @@ public Q_SLOTS:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
interfaces::Node& m_node;
|
interfaces::Node& m_node;
|
||||||
const QStringList columns{tr("Peer Id"), tr("Address"), tr("Network"), tr("Ping"), tr("Sent"), tr("Received"), tr("User Agent")};
|
const QStringList columns{
|
||||||
|
/*: Title of Peers Table column which contains a
|
||||||
|
unique number used to identify a connection. */
|
||||||
|
tr("Peer"),
|
||||||
|
/*: Title of Peers Table column which contains the
|
||||||
|
IP/Onion/I2P address of the connected peer. */
|
||||||
|
tr("Address"),
|
||||||
|
/*: 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
|
||||||
|
of the connection with the peer. */
|
||||||
|
tr("Ping"),
|
||||||
|
/*: Title of Peers Table column which indicates the total amount of
|
||||||
|
network information we have sent to the peer. */
|
||||||
|
tr("Sent"),
|
||||||
|
/*: Title of Peers Table column which indicates the total amount of
|
||||||
|
network information we have received from the peer. */
|
||||||
|
tr("Received"),
|
||||||
|
/*: Title of Peers Table column which contains the peer's
|
||||||
|
User Agent string. */
|
||||||
|
tr("User Agent")};
|
||||||
std::unique_ptr<PeerTablePriv> priv;
|
std::unique_ptr<PeerTablePriv> priv;
|
||||||
QTimer *timer;
|
QTimer *timer;
|
||||||
};
|
};
|
||||||
|
@ -1227,7 +1227,7 @@ void RPCConsole::updateDetailWidget()
|
|||||||
const CNodeCombinedStats *stats = clientModel->getPeerTableModel()->getNodeStats(selected_rows.first().row());
|
const CNodeCombinedStats *stats = clientModel->getPeerTableModel()->getNodeStats(selected_rows.first().row());
|
||||||
// update the detail ui with latest node information
|
// update the detail ui with latest node information
|
||||||
QString peerAddrDetails(QString::fromStdString(stats->nodeStats.m_addr_name) + " ");
|
QString peerAddrDetails(QString::fromStdString(stats->nodeStats.m_addr_name) + " ");
|
||||||
peerAddrDetails += tr("(peer id: %1)").arg(QString::number(stats->nodeStats.nodeid));
|
peerAddrDetails += tr("(peer: %1)").arg(QString::number(stats->nodeStats.nodeid));
|
||||||
if (!stats->nodeStats.addrLocal.empty())
|
if (!stats->nodeStats.addrLocal.empty())
|
||||||
peerAddrDetails += "<br />" + tr("via %1").arg(QString::fromStdString(stats->nodeStats.addrLocal));
|
peerAddrDetails += "<br />" + tr("via %1").arg(QString::fromStdString(stats->nodeStats.addrLocal));
|
||||||
ui->peerHeading->setText(peerAddrDetails);
|
ui->peerHeading->setText(peerAddrDetails);
|
||||||
|
Loading…
Reference in New Issue
Block a user