[Qt] tweak new peers tab in console window #4285

pull Diapolo wants to merge 1 commits into bitcoin:master from Diapolo:qt_peers changing 7 files +359 −270
  1. Diapolo commented at 10:17 AM on June 4, 2014: none
    • remove starting height as table header and replace with ping time
    • remove columnResizingFixer
    • add local address (if available) in detailed node view (on top of the right view below the remote address)
    • remove some .c_str() by using QString::fromStdString()
    • rename Address to Address/Hostname
    • rename secs to just s for ping time
    • use MODEL_UPDATE_DELAY from guiconstants.h for the peer refresh time
    • make PeerTableModel::columnCount() return no hard-coded value
    • remove and cleanup dup private: section in RPCConsole header
    • add new defaults for column sizes
    • remove behaviour which keeps disconnected peers selected and also remove code which keeps track of last selected peer stats
    • add sync height to detail view
    • add some additional NULL pointer checks for clientModel in rpcconsole.cpp
  2. laanwj commented at 10:31 AM on June 4, 2014: member

    @diapolo I suggest just cutting off long addresses (ie with ellipsis), then show the full address on hover. That's the accepted way of doing this. I remember there is some Qt mode for doing this, "elide mode" or something like that, but I'm not sure this is supported in tables. Edit: so no automatic resizing should happen based on the table contents!

  3. Diapolo commented at 11:37 AM on June 4, 2014: none

    @laanwj Small question, starting height means blocks a peer had when connecting to him or is that the current number of blocks it has? I think it would be better to replace starting height with something more valuable for a normal user like number of blocks on connect for example.

    I also would like to re-order the information in the node details to be better or easier to read.

  4. sipa commented at 11:39 AM on June 4, 2014: member

    After #2784, I would suggest replacing starting height by pingtime.

  5. laanwj commented at 12:08 PM on June 4, 2014: member

    Yes, ping time is nicer and more useful. @Diapolo It's the number of blocks on connect.

  6. Diapolo commented at 5:48 AM on June 5, 2014: none

    @sipa I'm fine with that change as it makes a whole lot of sense, when we auto-ping :).

  7. laanwj commented at 10:43 AM on June 12, 2014: member

    @Diapolo #2784 has been merged

  8. Diapolo commented at 11:34 AM on June 12, 2014: none

    Yeah, I'm going to update this and include ping rather than starting height now :).

  9. Diapolo commented at 12:12 PM on June 12, 2014: none

    @laanwj You can check it out, before looking in detail at the code you should try and see if you like it. Perhaps you are able to add a better handling of column sizes to this. It looks okay with default RPCConsole window size, but doesn't scale or resize when changing the window size at all.

  10. Diapolo commented at 12:41 PM on June 12, 2014: none

    I used a Qt5.2 setting in the Qt Designer, which I now removed.

  11. laanwj commented at 12:43 PM on June 12, 2014: member
    • The column for user agent is very narrow here by default. Handling of table sizing doesn't look like an improvement over what was there.
    • I think the information pane is too wide now; bytes received/sent below each other was fine with me.
    • The information pane is resizing in width all the time to the values, which looks very funky. The sizes should be fixed (certainly in width) IMO.
    • Ping time should probably be in ms, as people expect that from other ping tools.
  12. laanwj commented at 7:58 AM on June 18, 2014: member

    Hm the 'Node detail' problem also exists without this patch. The information pane, and the debug window around it, really shouldn't be actively resizing based on changing contents. I think this is a matter of setting some flag on the layout or widget.

  13. laanwj added the label GUI on Jul 31, 2014
  14. Diapolo commented at 12:32 PM on August 4, 2014: none
    • add sync height to detail view
    • format ping time in overview table and detail view the same
  15. laanwj commented at 12:35 PM on August 4, 2014: member

    @diapolo can we split this up a bit; all kind of changes all over the place are very hard to review and test

  16. Diapolo commented at 12:40 PM on August 4, 2014: none

    @laanwj Making further changes I can do seperate commits, which at the end can be just squashed. But I don't have any before the current state of this pull :-/. IMHO this changes a lot of things and should perhaps be considered the new base for the peers tab. Only real blocker is the layout problem IMHO, which likely will need your help.

  17. laanwj commented at 1:10 PM on August 4, 2014: member

    My main gripe is still that this makes the peer information too wide.

    untitled

    Especially with a wide User Agent, it looks strange (the width of the user agents determines how far Sent/Received numbers are separated from each other).

    I really preferred it as one-column layout (well - two column, label and information). If you change that back, this is ok with me.

  18. Diapolo commented at 1:33 PM on August 4, 2014: none

    @laanwj See the last squashme commit, this makes Send/Receive one line each again and adds a check if the nodeStateStats fetch was successful.

  19. laanwj commented at 1:38 PM on August 4, 2014: member

    Looks good to me now. ACK after squashing.

  20. [Qt] tweak new peers tab in console window
    - remove starting height as table header and replace with ping time
    - remove columnResizingFixer
    - add local address (if available) in detailed node view (on top of the
      right view below the remote address)
    - remove some .c_str() by using QString::fromStdString()
    - rename Address to Address/Hostname
    - rename secs to just s for ping time
    - use MODEL_UPDATE_DELAY from guiconstants.h for the peer refresh time
    - make PeerTableModel::columnCount() return no hard-coded value
    - remove and cleanup dup private: section in RPCConsole header
    - add new defaults for column sizes
    - remove behaviour which keeps disconnected peers selected and also remove
      code which keeps track of last selected peer stats
    - add sync height to detail view
    - add some additional NULL pointer checks for clientModel in
      rpcconsole.cpp
    a5b2d9c82e
  21. Diapolo commented at 1:47 PM on August 4, 2014: none

    Rebased into a single commit.

  22. BitcoinPullTester commented at 2:00 PM on August 4, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4285_a5b2d9c82e985fa8df4457072b4fa30781f1d53a/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  23. laanwj commented at 2:11 PM on August 4, 2014: member

    Also I still think ping times would be better in ms instead of s. But that can be done later.

  24. laanwj merged this on Aug 4, 2014
  25. laanwj closed this on Aug 4, 2014

  26. laanwj referenced this in commit 1913302fb7 on Aug 4, 2014
  27. Diapolo commented at 2:16 PM on August 4, 2014: none

    Sorry, I didn't catch that comment... see #4629.

  28. Diapolo deleted the branch on Aug 4, 2014
  29. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me