-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
peers-tab: cleaner presentation - more functionality #135
Conversation
src/qt/forms/debugwindow.ui
Outdated
@@ -36,7 +36,7 @@ | |||
<item> | |||
<widget class="QTabWidget" name="tabWidget"> | |||
<property name="currentIndex"> | |||
<number>0</number> | |||
<number>3</number> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave this alone...
src/qt/forms/debugwindow.ui
Outdated
@@ -36,7 +36,7 @@ | |||
<item> | |||
<widget class="QTabWidget" name="tabWidget"> | |||
<property name="currentIndex"> | |||
<number>0</number> | |||
<number>3</number> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave this alone...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is Qt Creator diff junk - I will correct this if/when ready for merge.
Thanks
src/qt/forms/debugwindow.ui
Outdated
<property name="statusTip"> | ||
<string/> | ||
</property> | ||
<property name="whatsThis"> | ||
<string/> | ||
</property> | ||
<property name="accessibleName"> | ||
<string/> | ||
</property> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is Qt Creator diff junk - I will correct this if/when ready for merge.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/qt/forms/debugwindow.ui
Outdated
<property name="toolTip"> | ||
<string/> | ||
</property> | ||
<property name="statusTip"> | ||
<string/> | ||
</property> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More pointless code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/qt/forms/debugwindow.ui
Outdated
<property name="whatsThis"> | ||
<string>Peer Detail</string> | ||
</property> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure this is useful
src/qt/forms/debugwindow.ui
Outdated
<property name="whatsThis"> | ||
<string>Detailed Info of Selected Node</string> | ||
</property> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blank
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (flag == "NETWORK_LIMITED"){ | ||
strList.append(QString::fromStdString("LIMITED")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're going to start renaming these, "recent-blocks" makes more sense than "LIMITED"...
} | ||
|
||
if (strList.size()) | ||
return strList.join(" & "); | ||
return strList.join(" "); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems less clear
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/qt/guiutil.cpp
Outdated
else | ||
return QObject::tr(""); //silence is golden |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This conditional seems pointless
{ | ||
QStringList strList; | ||
|
||
for (const auto& flag : serviceFlagsToStr(mask)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably better to re-implement serviceFlagsToStr
here...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.