peers-tab: cleaner presentation - more functionality#135
peers-tab: cleaner presentation - more functionality#135RandyMcMillan wants to merge 1 commit intobitcoin-core:masterfrom RandyMcMillan:peers-tab
Conversation
src/qt/forms/debugwindow.ui
Outdated
| <widget class="QTabWidget" name="tabWidget"> | ||
| <property name="currentIndex"> | ||
| <number>0</number> | ||
| <number>3</number> |
src/qt/forms/debugwindow.ui
Outdated
| <widget class="QTabWidget" name="tabWidget"> | ||
| <property name="currentIndex"> | ||
| <number>0</number> | ||
| <number>3</number> |
There was a problem hiding this comment.
This is Qt Creator diff junk - I will correct this if/when ready for merge.
Thanks
| <property name="statusTip"> | ||
| <string/> | ||
| </property> | ||
| <property name="whatsThis"> | ||
| <string/> | ||
| </property> | ||
| <property name="accessibleName"> | ||
| <string/> | ||
| </property> |
There was a problem hiding this comment.
This is Qt Creator diff junk - I will correct this if/when ready for merge.
Thanks
There was a problem hiding this comment.
src/qt/forms/debugwindow.ui
Outdated
| <property name="toolTip"> | ||
| <string/> | ||
| </property> | ||
| <property name="statusTip"> | ||
| <string/> | ||
| </property> |
There was a problem hiding this comment.
src/qt/forms/debugwindow.ui
Outdated
| <property name="whatsThis"> | ||
| <string>Peer Detail</string> | ||
| </property> |
src/qt/forms/debugwindow.ui
Outdated
| <property name="whatsThis"> | ||
| <string>Detailed Info of Selected Node</string> | ||
| </property> |
There was a problem hiding this comment.
Is this reachable? (Didn't we remove the "What's This" button?)
src/qt/forms/debugwindow.ui
Outdated
| <property name="accessibleName"> | ||
| <string/> | ||
| </property> |
There was a problem hiding this comment.
| if (flag == "NETWORK_LIMITED"){ | ||
| strList.append(QString::fromStdString("LIMITED")); |
There was a problem hiding this comment.
If we're going to start renaming these, "recent-blocks" makes more sense than "LIMITED"...
|
|
||
| if (strList.size()) | ||
| return strList.join(" & "); | ||
| return strList.join(" "); |
src/qt/guiutil.cpp
Outdated
| else | ||
| return QObject::tr(""); //silence is golden |
There was a problem hiding this comment.
This conditional seems pointless
| { | ||
| QStringList strList; | ||
|
|
||
| for (const auto& flag : serviceFlagsToStr(mask)) { |
There was a problem hiding this comment.
Probably better to re-implement serviceFlagsToStr here...
There was a problem hiding this comment.
The "Bumper" will be used to add more columns to the peertablemodel.
The point of having abbreviated services flags is to conserve space so more information can be displayed in the table view. The underlying design principle is to display as much useful info as possible "at a glance" as well as allowing those columns to be sortable. Connection time and synced blocks will be added in a follow up PR.
|
Nice. Concept ACK. |
There was a problem hiding this comment.
Concept ACK. You should split in multiple commits - renames, add more column(s), etc. Splitting in multiple commits also allows to split the PR so part of it can be early merged. You also have unrelated changes, like in RPCConsole::tabShortcut, that should be removed.
RandyMcMillan
left a comment
There was a problem hiding this comment.
Autogenerated gui elements are necessary for VALID code.
| @@ -920,9 +920,30 @@ | |||
| <layout class="QVBoxLayout" name="verticalLayout_7"> | |||
| <item> | |||
| <widget class="QTableView" name="peerWidget"> | |||
There was a problem hiding this comment.
Upon further investigation I see that Qt Creator validates these types of files and generates these elements when Qt expects them. If they are not present when Qt expects them they generate an innocuous log - So they aren't unnecessary code - these elements are created by Qt when it expects them and is VALID code. I recommend stop considering these auto generated elements as "unnecessary code".
I'm completely agree. @RandyMcMillan It would help make progress :) |
|
🐙 This pull request conflicts with the target branch and needs rebase. Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft". |



Initial Presentation:
peer table populated:
Detail View of selected peer:
Window enlarged:

Peertable and detail view:
Additional Notes:
The widgets were renamed to offer a "self documenting" naming convention during the development.