-
Notifications
You must be signed in to change notification settings - Fork 767
Gui goto #9177
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
Gui goto #9177
Conversation
Signed-off-by: LucasYuki <[email protected]>
Signed-off-by: LucasYuki <[email protected]>
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.
Code Review
This pull request introduces several valuable improvements to the GUI's "Go to position" functionality. Separating the 'Update' and 'Goto' actions is a great enhancement for user experience. The refactoring of the zoom padding calculation in LayoutViewer::zoomTo and the addition of LayoutViewer::getVisibleDiameter to invert this operation are well-conceived. However, I've identified a logical issue in the implementation of getVisibleDiameter related to how scrollbar dimensions are handled, which will lead to incorrect calculations. My review includes a detailed comment and a suggested fix for this issue.
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.
clang-tidy made some suggestions
Signed-off-by: LucasYuki <[email protected]>
|
clang-tidy review says "All clean, LGTM! 👍" |
Signed-off-by: LucasYuki <[email protected]>
|
clang-tidy review says "All clean, LGTM! 👍" |
|
I'm holding of reviewing until you make the changes to the update button we discussed. |
|
clang-tidy review says "All clean, LGTM! 👍" |
Signed-off-by: LucasYuki <[email protected]>
|
clang-tidy review says "All clean, LGTM! 👍" |
Signed-off-by: LucasYuki <[email protected]>
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.
clang-tidy made some suggestions
| &LayoutTabs::viewUpdated, | ||
| goto_dialog_, | ||
| &GotoLocationDialog::updateUnits); | ||
| &GotoLocationDialog::updateLocation); |
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.
warning: no header providing "gui::GotoLocationDialog" is directly included [misc-include-cleaner]
src/gui/src/mainWindow.cpp:20:
- #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
+ #include "src/gotoDialog.h"
+ #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)|
Please fix the tidy |
Signed-off-by: LucasYuki <[email protected]>
|
clang-tidy review says "All clean, LGTM! 👍" |








Closes #8700
Changes: