Skip to content

Improve peer delegate - #375

Merged
hebasto merged 2 commits into
bitcoin-core:mainfrom
promag:peers-item-delegate
Dec 2, 2023
Merged

hebasto merged 2 commits into
bitcoin-core:mainfrom
promag:peers-item-delegate

Conversation

@promag

@promag promag commented Nov 30, 2023 •

Copy link
Copy Markdown
Contributor

Use Qt ItemDelegate and use properties down and hovered, making it possible to drop the MouseArea Also improve the layout and elide the label that can overflow.

fixes #372.

@promag
promag force-pushed the peers-item-delegate branch 3 times, most recently from 4aa6f95 to e7c5711 Compare November 30, 2023 23:23

@MarnixCroes MarnixCroes left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

running e7c5711
there is still a little overlap?
and some part is cut off
image

@promag
promag force-pushed the peers-item-delegate branch from e7c5711 to 04d9f0d Compare November 30, 2023 23:44
@promag

promag commented Nov 30, 2023

Copy link
Copy Markdown
Contributor Author

@MarnixCroes please recheck.

@MarnixCroes

Copy link
Copy Markdown
Contributor

@promag starting to look good!
FWIW how it looks like now:
image

Ip column is cut of tho
good to have it fully displayed there
image

@promag
promag force-pushed the peers-item-delegate branch from 04d9f0d to c54c973 Compare December 1, 2023 11:24

@MarnixCroes MarnixCroes left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tack c54c973

only one comment: I think it is good to have the address displayed in full (without ... in middle) somewhere
WDYT?

@johnny9

johnny9 commented Dec 1, 2023

Copy link
Copy Markdown
Collaborator

tack c54c973

only one comment: I think it is good to have the address displayed in full (without ... in middle) somewhere WDYT?

There are designs for "Peer details" that we have plans to implement that I think should satisfy that.
image

@MarnixCroes

MarnixCroes commented Dec 1, 2023 •

Copy link
Copy Markdown
Contributor

@johnny9 ok, I wasn't aware of that. that's fine. thanks for sharing.

@MarnixCroes

Copy link
Copy Markdown
Contributor

ack c54c973
nice!

@johnny9 johnny9 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK c54c973

@hebasto hebasto changed the title qml: improve peer delegate Improve peer delegate Dec 2, 2023
@hebasto
hebasto merged commit 67150ef into bitcoin-core:main Dec 2, 2023
johnny9 pushed a commit to johnny9/bitcoin-core-app that referenced this pull request Jul 4, 2025
dd7b593 qml: change peer delegate layout (João Barbosa)
d8c56a1 qml: improve peer delegate (João Barbosa)

Pull request description:

  Use Qt `ItemDelegate` and use properties `down` and `hovered`, making it possible to drop the `MouseArea` Also improve the layout and elide the label that can overflow.

  fixes bitcoin-core/gui-qml#372.

ACKs for top commit:
  johnny9:
    ACK dd7b593

Tree-SHA512: e9fe745100d0d5b17299601ce81c4dbb97ee714b0c9226a2b4b0761f6658f3475be79981e8ac37d62d444e54250a4215bd434c4ab0382b673d0a416432c032cb
tx-signer450 added a commit to tx-signer450/gui-qml that referenced this pull request Oct 20, 2025
dd7b593e245c1dabe935dc38553c79b2e5e4e6f5 qml: change peer delegate layout (João Barbosa)
d8c56a11682ee87baf3d027d52a946a4e075acc2 qml: improve peer delegate (João Barbosa)

Pull request description:

  Use Qt `ItemDelegate` and use properties `down` and `hovered`, making it possible to drop the `MouseArea` Also improve the layout and elide the label that can overflow.

  fixes bitcoin-core/gui-qml#372.

ACKs for top commit:
  johnny9:
    ACK dd7b593e245c1dabe935dc38553c79b2e5e4e6f5

Tree-SHA512: e9fe745100d0d5b17299601ce81c4dbb97ee714b0c9226a2b4b0761f6658f3475be79981e8ac37d62d444e54250a4215bd434c4ab0382b673d0a416432c032cb
johnny9 pushed a commit to johnny9/gui-qml that referenced this pull request Jun 14, 2026
johnny9 pushed a commit to johnny9/gui-qml that referenced this pull request Jun 14, 2026
johnny9 pushed a commit to johnny9/gui-qml that referenced this pull request Jun 14, 2026
dd7b593 qml: change peer delegate layout (João Barbosa)
d8c56a1 qml: improve peer delegate (João Barbosa)

Pull request description:

  Use Qt `ItemDelegate` and use properties `down` and `hovered`, making it possible to drop the `MouseArea` Also improve the layout and elide the label that can overflow.

  fixes bitcoin-core#372.

ACKs for top commit:
  johnny9:
    ACK dd7b593

Rebased-From: 67150ef
Github-Pull: bitcoin-core#375
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Peers: onion address causes overlap

4 participants