Adds a warning (with a cancel option!) when users start to close
a project containing any memory layers with features. These
layers are temporary only and their contents will be permanently
lost if the project is closed. The warning allows users to
cancel the close operation (that's the default action!) so that
they can then save these layers out to a permanent location.
Previously, the unsaved layer warnings would come AFTER the
unsaved project warning. The unsaved layer warnings had no
cancel option, which meant that there was no way to cancel
a project close when unsaved layer edits exist, and you
were forced to either save these edits or discard them.
Now, the unsaved layer edits checks occur before the unsaved
project check, and you have the option now to 'Cancel' the
project close from the unsaved layer edits messagebox. This
allows users to cancel the project close operation if they
want to e.g. inspect manually unsaved layers to decide
what action is appropriate to take on these.
Also fixes the unsaved layer edits prompt sometimes didn't
appear, even though unsaved changes were present...
for a request. Most requests should reserve more
than a single connection (default: 3) and only
requests that are executed as nested expressions
should specify 1.
method to QgsNative
Opens the desktop file explorer at the folder containing path,
and (if possible) scrolls to and pre-selects the file at path itself.
The default implementation just calls the QDesktopServices method to open the folder,
without selecting the specified file.
Use this to automatically select the exported layout file
when clicking the message bar success message in layouts (on Windows)
This mode of 3D line rendering will use OpenGL line rendering
instead of buffering lines into polygons and rendering them as meshes.
The advantage is that the 3D lines do not loose their Z coordinate
which is the case currently with "ordinary" 3D rendering after buffering.
The disadvantage is that the lines cannot be wide (supported in Qt3D only
since 5.10, but even then their rendering won't have nice joins/caps)
and only ambient color is used from the material.