-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
3D View changes and fixes #11048
3D View changes and fixes #11048
Conversation
f233c18
to
2c0ac5e
Compare
…lickable for 3D Settings, using Loader for Viewer3DManager, touchscreen added
2c0ac5e
to
196192c
Compare
…Qt-maintenance tool
This is shown in a QGCPopupDialog. QGCPopupDialog automatically sizes itself to fit what you put in it never growing larger than what will fit within the screen. It already has a Flickable in it so if your content needs to scroll to fit the screen it will happen automatically. No need to do it yourself. Was that not working for you? |
In reality the Viewer3DSettingsMenu should just use QGCPopupDialog as its base class. And name it not with the word Menu. Then you just put that into a Component when you need to use it. |
And then for dialogs the best structure tends to be: This way the layout automatically sizes to as much as put into it. Which will in turn correctly size the dialog. Tons of example usage in the codebase. |
aade577
to
9505e68
Compare
9505e68
to
421464a
Compare
@DonLakeFlyer |
@@ -66,7 +66,7 @@ ToolStripActionList { | |||
enabled: false | |||
visible: enabled | |||
onTriggered:{ | |||
viewer3DWindow.settingMenuOpen = !viewer3DWindow.settingMenuOpen | |||
viewer3DWindow.settingsDialogOpen = !viewer3DWindow.settingsDialogOpen |
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.
Triggering things other than visibility to happen on boolean state changes is pretty odd. This sort of thing is much better handled by a function in Viewer3DWindow like showSettingsDialog() which then creates the settings dialog component. Much clearer as to what it does.
I'd like to also clean up the fact that the 3D View button is always visible even though the majority of users will not use this. I think the way to do this is as follows:
|
@DonLakeFlyer I will also move the 3D View settings to the Fly View settings in a separate group with the changes you suggested. about how to enable the 3D view, what about adding a Toggle Switch in the Fly View settings to enable the 3D view? This way, it will not be mandatory to upload an OSM file to use the 3D view. Just in case, if someone only wants to show the 3D vehicle and the waypoints. So, what do you think? |
Ah, yeah. That makes sense from a good use case. |
…abled switch is added
@DonLakeFlyer |
Looks fantastic, thanks |
@DonLakeFlyer |
The following changes have been made regarding the 3D viewer: