It made a lot of stressed GIS people smile (and as a bonus
stressed out some unhappy grinches in the process!), but
there's nothing worse than a good easter egg which lives
on too long and gets tired.
RIP santa QGIS... bring on the next easter egg!
Allows you to quickly hide all deselected layers. This is very handy
when you have a large project and want to quickly hide all except
for a couple of layers
Selection tools are usually located within the edit menu directly
after the clipboard tools. View menu is usually populated with
actions which affect only the view, rather then editing the
document (project or layer) state.
Adds a new method to QgsVectorDataProvider to truncate the layer.
The base implementation requires DeleteFeatures capability and
is not optimised. Providers can return the FastTruncate capability
and override the base implementation with a provider specific
optimised version. This is done in this commit for the Postgres
and Spatialite providers.
Previously this method would only succeed for providers which
explicitly implement it. Now, providers which do not implement
changeFeatures but do support both ChangeAttributeValues
and ChangeGeometries capabilities will use a non-optimised
version of changeFeatures which calls changeAttributeValues
and changeGeometries in turn.
This makes QgsVectorDataProvider::changeFeatures easier to use
in scripts - instead of writing manual fallbacks for providers
which do not implement it you can instead safely call this
method regardless of the provider and it will succeed wherever
both the attributes/geometries can be changed.
Also add a provider unit test covering this.
Fixes https://github.com/qgis/QGIS/pull/3871#commitcomment-20280621, ie switching between
renderers in the raster layer properties dialog or in the style dock result in non optimal
parameters, so better switch to default parameters that would be the ones used when
adding a layer of the new renderer type to the canvas. This issue already existed in 2.18
Also fixes a potential infinite notification cycle when having both the style dock and
layer properties dialog opened, and applying changes in the layer properties dialog.
(related to https://github.com/qgis/QGIS/pull/3871).