QStyle::standardPixmap is deprecated and not hi-dpi friendly.
Unfortunately, there's no equivalent of QIcon::addPixmap
for QIcons themselves -- so it's **impossible** in current Qt
API to handle the ON/OFF icon states.
Believe me... there's NOOOOOOO way. I've looked. I've tried.
It's not possible.
This means we have to change the logic for showing open/closed
folders in browser. This commit revises the logic to show the
open icon for any *populated* folders, regardless of whether
they are opened or not.
Currently in readonly modus of a form, the line-edits get
a 'disabled'-palette. But because text is then so light readability
is bad.
Removing the palette make the lineedits look like they are writable
input fields. So to distinguish them from input field, the frame
is removed and the background (of the lineEdit) is set to almost
transparent.
having invokable on overloaded methods taking enum as parameter is pretty useless as it is seen as an integer
the last declared was used: e.g. the one with LayoutUnit for toAbbreviatedSring
this commit only keeps the ones for DistanceUnit which is the most likely to be used
..and make progress bar more accurate.
Use a spatial index to avoid comparing every feature to every other
feature, and only compare against features with intersecting bounding
boxes instead. Also optimise feature requests and loop logic.
Benchmarks:
Point layer, 6000k features
Before: 30 seconds
After: 0.15 seconds
Point layer, 45k features
Before: > 10 minutes
After: 7 seconds
Fixes#19973
Fixes#1993 - Zoom to feature" does not work
This actually fixes many more bugs related with the
QGIS generated feature id (incremental) when using
queries that was not consistent when using
QgsFeature request with ids or bbox.
This is not a regression: the same error is in 2.18
A small usability improvement... until now one would need to disable
identify tool before being able to move/zoom/rotate the camera in 3D view
and then enable identify tool again. Now camera can be controlled
while the tool is active and the tool is easier to use.
Avoid conversion to/from WKB at OGR/QGIS side, and just directly
utilise OGR geometry API to construct QGIS geometries.
Shaves ~10% off rendering time for a large point layer (GPKG)
* The current description focuses on geometries and assumes only line or vector layers can be dissolved
* Rename label to look more meaningful and closer to GDAL Dissolve's