-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fix saving and restoring of 3D map view settings #219
Conversation
map->setSelectionColor( mMapCanvas->selectionColor() ); | ||
map->setBackgroundColor( mMapCanvas->canvasColor() ); | ||
#endif | ||
map->setOutputDpi( QGuiApplication::primaryScreen()->logicalDotsPerInch() ); |
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 the right place for this?
what happens with a secondary screen?
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.
I think this is based on simplified assumptions (straight 1:1 copy from the QGIS source) that the 3D is shown on the same screen as the main application window.
I can adapt, but I think to be really meaningful, this would also need to react when the widget is dragged to another screen which afaik is one of the tricky things to do with Qt. So maybe we can assume that people who work with multiple screens have identical ones?
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.
yep, I've always had troubles with QGIS on multiple screens.
Fine with me like this, we can wait for any bugreport and properly fix this upstream.
kadas/app/3d/kadas3dintegration.cpp
Outdated
connect( QgsProject::instance(), &QgsProject::readProject, [this] { | ||
if ( m3DMapCanvasWidget ) | ||
{ | ||
QDomElement viewConfig = QgsProject::instance()->viewsManager()->get3DViewSettings( "kadas-3d" ); |
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.
should we use static string for this identifier?
No description provided.