890 Commits

Author SHA1 Message Date
Nyall Dawson
afac0312aa Expose QgsGeos class to PyQGIS
This class has lots of (very useful!) GEOS specific functionality which
is not exposed through the base QgsGeometryEngine class
2024-12-06 19:20:26 +10:00
qgis-bot
2c266b98f5 auto sipify 🍺 2024-12-05 12:23:03 +00:00
Denis Rouzaud
76f702e48a sipify 2024-12-05 13:19:50 +01:00
qgis-bot
6ac62032fb auto sipify 🍺 2024-12-04 19:17:09 +00:00
Nyall Dawson
2140c555fe Double-clicking a mouse handle for a layout label resizes to fit text
Double-clicking a handle will auto-size the label to exactly fit
the contained text (growing or shrinking as needed). The opposite
side of the label will remaining fixed in place, so eg double-click
the bottom-right handle causes the bottom-right corner of the label
to move.
2024-12-05 05:13:53 +10:00
qgis-bot
3fca3fc3cc auto sipify 🍺 2024-12-03 17:01:09 +00:00
Nyall Dawson
87efed6b0e Expose mode 2024-12-04 02:57:51 +10:00
qgis-bot
dd32d0e8f9 auto sipify 🍺 2024-12-03 08:30:06 +00:00
David Koňařík
d47ad7dfe0 Minor changes per review 2024-12-03 09:26:55 +01:00
David Koňařík
f2afd6a498 Expose point cloud class statistics to Python 2024-12-03 09:26:55 +01:00
David Koňařík
e5064f092a Refactor QgsPointCloudIndex statistics methods 2024-12-03 09:26:55 +01:00
qgis-bot
eb1ce83af1 auto sipify 🍺 2024-12-03 07:47:10 +00:00
qgis-bot
a6946c6909 auto sipify 🍺 2024-12-03 03:01:14 +00:00
hxbb00
33b22c6519 feat: Enhance the ability to customize icons for QgsPluginLayer 2024-12-03 12:58:00 +10:00
Nyall Dawson
37478db0c1 Fix more function links 2024-12-03 12:57:44 +10:00
Nyall Dawson
d50fe2a9e5 Fix function links, sipify 2024-12-03 12:57:44 +10:00
qgis-bot
b397c66689 auto sipify 🍺 2024-12-02 21:09:13 +00:00
Nyall Dawson
8d60d4f6d7 Make some factories return unique_ptr 2024-12-03 07:06:02 +10:00
Nyall Dawson
596ecbee9c [sip] Implement MappedType for unique_ptr to Python conversion 2024-12-03 07:06:02 +10:00
qgis-bot
f802e20284 auto sipify 🍺 2024-12-02 14:21:09 +00:00
Nyall Dawson
7670fbe362
Move class, method out of QgsPalLabeling to central location 2024-12-02 12:46:23 +10:00
qgis-bot
292bb8fa79 auto sipify 🍺 2024-11-29 21:40:53 +00:00
Nyall Dawson
bb6919aeea Move QgsRasterMinMaxOrigin enums to Qgis, promote to enum class 2024-11-30 07:36:47 +10:00
Denis Rouzaud
0f032e5f2d run pre-commit on all files 2024-11-29 15:38:02 +01:00
qgis-bot
da86bc17a6 auto sipify 🍺 2024-11-28 04:40:16 +00:00
Jean Felder
9d372b6019 qgsrasterlayer: Remove refresh logic
This is not used anymore.
2024-11-28 14:37:06 +10:00
Jean Felder
76cbf8b3a5 qgsrasterlayer: Make computeMinMax public
This will be used in the next commit to refresh a renderer.
2024-11-28 14:37:06 +10:00
Jean Felder
dd36eb7249 qgsrasterrenderer: Introduce refresh
This is similar to what is achieved in
`QgsRasterLayer::refreshRenderer()` to refresh the renderer according
to an extent. Contrary to the first one, this method does not perform
any GUI update or emit any signal.

It is not used at the moment. This will replace the logic to refresh a
renderer in the following commits.
2024-11-28 14:37:06 +10:00
Jean Felder
2747710499 qgsrasterrenderer: Introduce needsRefresh
This is similar to what is achieved in
`QgsRasterLayer::refreshRendererIfNeeded()` to check if the renderer
needs to be refresh according to an extent. It does not perform any
refresh.

It is not used at the moment. This will replace the logic to refresh a
renderer in the following commits.
2024-11-28 14:37:06 +10:00
Jean Felder
efaff7e2f5 introduce qgsrenderedlayerstatistics
This will be used in the next commits to store the min-max values of a
raster layer and report them to the main canvas.
2024-11-28 14:37:06 +10:00
qgis-bot
cfeafb4610 auto sipify 🍺 2024-11-26 21:13:42 +00:00
Yoann Quenach de Quivillic
32c6a3d8e7 Add global enum 2024-11-27 07:10:29 +10:00
qgis-bot
d45401c7de auto sipify 🍺 2024-11-26 10:01:12 +00:00
Nyall Dawson
6b468bc32d
Add != operator for QgsColorRampShader 2024-11-26 15:04:03 +10:00
qgis-bot
128a4a6dec auto sipify 🍺 2024-11-25 00:29:49 +00:00
Mathieu Pellerin
cbef4f7172 [qml] Upgrade QgsRectangle to Q_GADGET 2024-11-25 10:26:38 +10:00
Mathieu Pellerin
3ec4a8aab3 [qml] Expose QgsLocatorContext's transformContext as property 2024-11-25 10:26:38 +10:00
qgis-bot
1cdf1d72b8 auto sipify 🍺 2024-11-22 23:04:12 +00:00
Nyall Dawson
e82b375ed0 Revert "[qml] Upgrade QgsRectangle to Q_GADGET"
This reverts commit 657d3d3190417fc1578f53559fd5133cf07f5199.
2024-11-23 09:01:05 +10:00
Nyall Dawson
9a537b71e9 Revert "[qml] Expose QgsLocatorContext's transformContext as property"
This reverts commit 714ddff73991730d4ea4b063a09ed800d2623d19.
2024-11-23 09:01:05 +10:00
qgis-bot
3440c17df1 auto sipify 🍺 2024-11-22 10:39:03 +00:00
Mathieu Pellerin
714ddff739 [qml] Expose QgsLocatorContext's transformContext as property 2024-11-22 17:35:55 +07:00
Mathieu Pellerin
657d3d3190 [qml] Upgrade QgsRectangle to Q_GADGET 2024-11-22 17:35:55 +07:00
qgis-bot
e5413344a9 auto sipify 🍺 2024-11-21 20:02:59 +00:00
Nyall Dawson
6708501ee9 [feature] Support CSS background property in labels/text renderer
This commit adds support for the CSS ``background-color`` and
``background-image`` properties when used with HTML labels.

- Backgrounds are supported for block items (eg ``<div>``) or inline
  items (eg ``<span>``)
- For images, the CSS should be formatted as ``background-image: url(xx)``.
  It supports local file paths, http links, or base64 embedded content
- Backgrounds are not supported for curved text
- HTML backgrounds are always rendered above any background shape for
  the label, and below drop shadows/buffers

Sponsored by City of Freiburg im Breisgau
2024-11-22 05:59:44 +10:00
Nyall Dawson
dd84aab200 Add background brush property for QgsTextBlock, QgsTextFragment 2024-11-22 05:59:44 +10:00
qgis-bot
70d7f59e06 auto sipify 🍺 2024-11-21 14:10:03 +00:00
Mathieu Pellerin
7d190f9171
[qml] Upgrade QgsLocatorResult to a Q_GADGET (#59547) 2024-11-21 15:03:52 +01:00
qgis-bot
2eef9e12d3 auto sipify 🍺 2024-11-21 01:15:27 +00:00
Mathieu Pellerin
10883253d3 [qml] Upgrade QgsLocatorContext to a Q_GADGET 2024-11-20 21:02:31 +07:00