23610 Commits

Author SHA1 Message Date
Even Rouault
d2272306f5 QgsBlockingNetworkRequest::get(): add an optional flag parameter 2024-07-29 12:14:29 +10:00
qgis-bot
5f6debbb6d auto sipify 🍺 2024-07-26 10:41:04 +00:00
Nyall Dawson
6ab373284c Fix merge 2024-07-26 20:38:47 +10:00
Nyall Dawson
0c230a83e7 Add fixed size mode for picture annotations
When selected, the picture annotation will always be rendered
at the same size, regardless of the map scale
2024-07-26 20:38:47 +10:00
Nyall Dawson
75cca8a20c [FEATURE] Add picture annotation item type
Can render SVG or raster images as items in an annotation layer.
Options are present for:

- Locking the picture's aspect ratio
- Drawing with a background symbol
- Drawing with a border symbol
- Linked or embedded pictures
2024-07-26 20:38:47 +10:00
qgis-bot
7894ff43b0 auto sipify 🍺 2024-07-25 22:53:39 +00:00
Nyall Dawson
390d59d6e3 Make current item bounds available for annotation edit operations 2024-07-26 08:51:25 +10:00
Nyall Dawson
80e77a68c5 Add context argument to annotation item edit methods
And deprecate existing ones
2024-07-26 08:51:25 +10:00
qgis-bot
3aed037ce2 auto sipify 🍺 2024-07-25 08:00:08 +00:00
Nyall Dawson
c2c75f3b19
More no-value dox removal 2024-07-25 09:04:22 +10:00
qgis-bot
15fe04a289 auto sipify 🍺 2024-07-24 18:05:14 +00:00
Nyall Dawson
6d829ff7b4 Drop some more no value documentation 2024-07-25 04:02:55 +10:00
Nyall Dawson
6f652d251b Drop no-value copy constructor dox 2024-07-25 04:02:55 +10:00
Nyall Dawson
ad29a505e1 Fix text wrapping stability for small text
Adjust the QgsTextRenderer::calculateScaleFactorForFormat logic
so that small text is scaled up to at least 50 pixels when
calculating text metrics

This avoids tiny differences in calculated text metrics for small
text from affecting how text wrapping is calculated, which can
otherwise result in words at the end of lines "bouncing" from line
to line as layouts and maps are zoomed out
2024-07-25 04:02:33 +10:00
qgis-bot
49a7e85a74 auto sipify 🍺 2024-07-23 06:43:14 +00:00
Nyall Dawson
2fb85192aa Fix crash when extracting symbols from project with layout legend
Legend must be initialized before calling style visitor function

Fixes #57609
2024-07-23 16:40:47 +10:00
qgis-bot
612afa779a auto sipify 🍺 2024-07-22 16:10:48 +00:00
Nyall Dawson
28943f9c1b Remove a bunch of useless default constructor doxygen 2024-07-23 02:08:28 +10:00
Denis Rouzaud
5166fc7a51
fix class map install (#58200)
* fix class map install

* fix path
2024-07-22 13:20:18 +02:00
qgis-bot
f4005f7e5f auto sipify 🍺 2024-07-21 21:17:02 +00:00
Nyall Dawson
bef93c5529 Fix incorrect docs 2024-07-22 07:14:34 +10:00
Nyall Dawson
3f767337c3 Create QgsCalloutPanelWidget
This is a standalone, reusable widget for configuring callouts.
Designed for use outside of the standard labeling callout contexts.
2024-07-22 07:14:23 +10:00
Nyall Dawson
5ba353ed54 Const correctness 2024-07-22 07:14:23 +10:00
Nyall Dawson
f2591c1b78 Move callout widget initialization to common place 2024-07-22 07:14:23 +10:00
Nyall Dawson
51b747efce Make API more flexible, allow any layer type for callout widget functions 2024-07-22 07:14:23 +10:00
pathmapper
0ab1197200 [metasearch] Improve empty field handling 2024-07-21 08:44:05 +10:00
qgis-bot
d69b60ba77 auto sipify 🍺 2024-07-18 20:15:37 +00:00
Nyall Dawson
8c067b2782 Rename QgsRenderContext custom "flags" to custom properties
And deprecate the old methods
2024-07-19 06:13:00 +10:00
Nyall Dawson
32c46db849 Update python/core/additions/qgsfeature.py
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
2024-07-19 06:12:25 +10:00
Nyall Dawson
2f10455db2 Fix __geo_interface__ should use None for NULL values
Fixes #58084
2024-07-19 06:12:25 +10:00
qgis-bot
657307e766 auto sipify 🍺 2024-07-18 10:18:45 +00:00
Julien Cabieces
45b1f74a74
Merge pull request #58158 from nyalldawson/vector_data_provider_enum
Move some data provider enums to Qgis, promote to enum class
2024-07-18 12:16:30 +02:00
Nyall Dawson
4f9bdde88c
Add missing monkey patch 2024-07-18 15:04:32 +10:00
qgis-bot
12f90b34bc auto sipify 🍺 2024-07-18 04:55:33 +00:00
Nyall Dawson
fe8ee66ef5 Add easy way for QgsMapToolAdvancedDigitizing to show snapping indicator
Instead of requiring all subclasses to manually implement this logic,
add QgsMapToolAdvancedDigitizing::setUseSnappingIndicator so that
the base class takes care of this for us
2024-07-18 14:53:14 +10:00
Nyall Dawson
73b25dca3e
Move QgsVectorDataProvider::Capability to Qgis::VectorProviderCapability
And promote to enum class
2024-07-18 10:42:22 +10:00
Nyall Dawson
145de5fb5e
Move QgsDataProvider::ReadFlag to Qgis::DataProviderReadFlag
and promote to enum class
2024-07-18 10:01:59 +10:00
qgis-bot
a7bad33075 auto sipify 🍺 2024-07-17 06:57:43 +00:00
Julien Cabieces
57595b409a
Merge pull request #58141 from nyalldawson/see
Use \see not \sa
2024-07-17 08:55:29 +02:00
qgis-bot
105aabd065 auto sipify 🍺 2024-07-17 06:37:31 +00:00
Julien Cabieces
93b52a0b57
Merge pull request #58120 from nyalldawson/m2p_bounds
Add QgsMapToPixel method to transform bounding boxes
2024-07-17 08:35:21 +02:00
qgis-bot
ec64cf993a auto sipify 🍺 2024-07-17 06:34:35 +00:00
Julien Cabieces
25c28d6c7d
Merge pull request #58122 from nyalldawson/painter_dpi_methods
Cleanup QPicture dpi scaling workarounds
2024-07-17 08:32:21 +02:00
qgis-bot
9e47ca4230 auto sipify 🍺 2024-07-17 05:33:11 +00:00
Julien Cabieces
76a4202f7e feat(ICCProfile): Add an action to save an ICC profile file 2024-07-17 15:30:52 +10:00
qgis-bot
a44963a33d auto sipify 🍺 2024-07-17 03:42:46 +00:00
Nyall Dawson
45090576b2 Add method to determine whether a QgsCoordinateTransform has a vertical
component
2024-07-17 13:40:35 +10:00
Nyall Dawson
8e95b2c0ed Add helper method to calculate transform to apply for a QgsFeatureRequest 2024-07-17 13:40:35 +10:00
Nyall Dawson
27294b1374 Add QgsCoordinateTransform setter for QgsFeatureRequest
Sets the coordinate transform which will be used to transform
the feature's geometries.

If this transform is valid then it will always be used to transform
features, regardless of the destinationCrs() setting or the underlying
feature source's actual CRS.

This method should be used with caution, and it is recommended
to use the high-level setDestinationCrs() method instead. Setting a specific
transform should only be done when there is a requirement to use a particular
transform, eg when a specific, non-default coordinate operation
MUST be used for the transformation.
2024-07-17 13:40:35 +10:00
Nyall Dawson
cc937af28a Add equality operator for QgsCoordinateTransform 2024-07-17 13:40:35 +10:00