Alexander Bruy
85d191038e
better names for enum values
2025-04-23 07:39:24 +10:00
Alexander Bruy
cb89558792
convert interpolation enums to enum classes
2025-04-23 07:39:24 +10:00
Alexander Bruy
29a612f9c1
convert kernel density estimation enums to enum classes
2025-04-23 07:39:24 +10:00
Alexander Bruy
adf4f08001
convert raster calculator result enum to enum class
2025-04-23 07:39:24 +10:00
Alexander Bruy
c0b435994e
use enum class instead of plain enum and add test to ensure comparison
...
with int works
2025-04-10 14:11:19 +10:00
Alexander Bruy
a584e533d9
use enum for return value instead of plain int in the QgsNineCellFilter
2025-04-10 14:11:19 +10:00
Nyall Dawson
9435a84ff7
sipify
2025-04-03 01:05:31 +10:00
Nyall Dawson
3f6b490218
Sipify
2025-04-02 11:11:10 +10:00
Nyall Dawson
7b56629478
Sipify
2025-03-27 14:00:26 +10:00
qgis-bot
eb1ce83af1
auto sipify 🍺
2024-12-03 07:47:10 +00:00
Nyall Dawson
059a37f87d
Fix struct attributes descriptions missing from PyQGIS docs ( #58672 )
...
Fixes https://github.com/qgis/pyqgis-api-docs-builder/issues/177
2024-09-12 07:12:52 +02:00
Nyall Dawson
f21722a0f1
[sipify] Minor cleanup to auto additions
...
Condense injections into a single block instead of multiple
separate blocks
2024-09-09 16:56:29 +10:00
Nyall Dawson
2af54ad057
Fix malformed python docstrings when enum value has \since annotation
2024-09-01 02:29:17 +10:00
Nyall Dawson
3f481b568e
Record header subfolders as __group__ attribute in PyQGIS classes
...
This will allow us to logically create subgroups for PyQGIS modules
in the API reference guide
2024-08-17 20:13:12 +10:00
Nyall Dawson
989e62a80f
Handle docstrings for c++ structs
...
sip doesn't support the docstring directive for structs (only classes),
so patch these back in via sipify magic
2024-08-16 07:28:29 +10:00
Nyall Dawson
c23e35bb08
calculateStatistics is not unambiguously static
2024-08-14 22:08:41 +10:00
Nyall Dawson
1f27fc627a
[pyqgis] Wrap unambiguously static methods in staticmethod
...
sip doesn't use the standard Python staticmethod type for defining
static methods, which means that standard means of testing
for a static method (like `isinstance(..., staticmethod)`) fail
with any PyQGIS static methods.
This causes issues with lint tools, which incorrectly flag
calls to QGIS static methods as missing self arguments. It also
breaks detection of static methods in the sphinx PyQGIS docs,
so all static methods are shown as non-static.
Work around this in sipify, by wrapping unambiguously static
methods in staticmethod wrappers.
2024-08-14 22:08:41 +10:00
Nyall Dawson
dc68f03f88
Be tolerant against optional sip modules
2024-08-14 13:05:46 +10:00
Nyall Dawson
ed19d996b2
Collect attribute docstrings for PyQGIS documentation
2024-08-14 13:05:46 +10:00
Nyall Dawson
e7b26478e2
Valid fixes
2024-08-13 20:28:55 +10:00
Nyall Dawson
503a95a1a1
Move enums to Qgis namespace for consistency
2024-02-02 04:59:04 +10:00
Nyall Dawson
179e2ca59a
Promote some more enums to enum class to fix PyQt6 support
2024-02-02 04:59:04 +10:00
Nyall Dawson
38cff47c9e
Fix flags bool operator on qt6
2024-01-30 14:49:54 +10:00
Nyall Dawson
c1a47b2aa9
Sipify
2024-01-29 04:23:44 +10:00
Nyall Dawson
85b7a2c411
[sipify] Patch support for int based enum operations on non-enum class ints
...
sip6 converts all enums to python Enums, but ONLY creates
Enums with IntFlags types when the c++ type is an enum class : int.
Accordingly we need to patch back in all the operations which treat
enum values as ints, like |, &, bool, etc.
The long term solution here is to move all our c++ enums to enum
class, but that's not always straightforward and can break API
for plugins if it involves the signature of virtual methods.
2024-01-29 04:23:44 +10:00
Julien Cabieces
e8093a8ce5
Only mock non class enums
2023-12-13 05:36:44 +10:00
Julien Cabieces
7f586d8742
PyQt6 sip files
2023-12-13 05:36:44 +10:00
Julien Cabieces
bb3c36a69b
Initialize sip bindings for PyQt6
...
use exactly the ones from PyQt5 so we can study the difference when
generating for PyQt6
2023-12-08 03:38:42 +10:00