Picking up #264
This adds a Copy Address
context menu action to the Peers Tab
.
Based on the first commit of PR #317 so that we can use Qt::DisplayRole
in the copyEntryData
function.
Master | PR |
---|---|
Copy address
Peers Tab Context Menu Action
#318
646@@ -647,6 +647,11 @@ void RPCConsole::setClientModel(ClientModel *model, int bestblock_height, int64_
647
648 // create peer table context menu
649 peersTableContextMenu = new QMenu(this);
650+ //: Context menu action to copy the address of a peer
651+ peersTableContextMenu->addAction(tr("Copy address"), [this] {
Co-authored-by: Jarol Rodriguez <jarolrod@tutanota.com>
tACK 3ec061d9da0c8742bd9dec94ffeb82a11d000aba Tested on Ubuntu 20.04 (Using Qt version 5.12.8)
This PR adds the functionality to copy the address of a peer from the peertable itself. Tested this PR on Ubuntu 20.04. And I was able to observe the change working correctly.
Master | PR |
---|---|
I agree with the changes suggested in this PR. After #384 being merged, I think it is the next logical step to also having the functionality of copying the address of peer from peertable using the context menu action.
679@@ -680,6 +680,11 @@ void RPCConsole::setClientModel(ClientModel *model, int bestblock_height, int64_
680
681 // create peer table context menu
682 peersTableContextMenu = new QMenu(this);
683+ //: Context menu action to copy the address of a peer
nit:
0 //: Context menu action to copy the address of a peer.
ACK 3ec061d9da0c8742bd9dec94ffeb82a11d000aba, tested on Linux Mint 20.2 (Qt 5.12.8):