Nyall Dawson
90f180c07f
Start on utils class
2024-02-15 12:39:11 +10:00
Nyall Dawson
0096246afe
Sipify
2024-02-13 20:51:03 +10:00
Nyall Dawson
62cd14189f
Use proper enum flags type instead of int as return value
...
And promote enum to enum class. Notably fixes a bunch of startup
errors when loading the Processing plugin under Qt6
2024-02-13 08:13:43 +10:00
Nyall Dawson
87f117f47b
[sipify] Avoid leading and trailing newlines in enum value docstrings
2024-02-11 13:37:29 +10:00
Nyall Dawson
2b710b2617
[sipify] Don't write invalid escaped \d character to docstring
...
Instead correctly translate to ..deprecated python docstrings
2024-02-11 13:37:29 +10:00
Nyall Dawson
ee53b9ae48
Port processing enums to enum class
...
A step towards a Qt6 compatible Processing framework
2024-02-10 17:25:22 +10:00
Nyall Dawson
ac2f1179c8
More item data role enum to enum class conversions
2024-02-06 21:04:43 +10:00
Nyall Dawson
feecb4017c
Make some custom model roles enum class for Qt6 compatibility
2024-02-06 21:04:43 +10:00
Nyall Dawson
3e07b06d87
Fix broken old API compatibility code on Qt 6 builds
...
The old sip based approach to handling property -> getter/setter
conversion is broken on sip6, so move the patching into Python.
Also fix incorrect checks in tests, and add additional test
for compatiblity code.
2024-02-04 05:54:31 +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
f1e3ba9e2d
Use correct sip method
...
And use INDENT-OFF annotations to avoid astyle messing up
formatting of enum with inline macros
2024-01-31 13:48:49 +10:00
Nyall Dawson
2d4c569b9c
Fix build
2024-01-31 13:48:49 +10:00
Nyall Dawson
b5aca7c0b5
Promote another enum to enum class
2024-01-31 13:48:49 +10:00
Nyall Dawson
23f3af4290
Use enum classes for QgsProperty property keys
...
Should fix usage on Qt 6 builds
2024-01-31 13:48:49 +10:00
Alessandro Pasotti
27824078ad
Introduce QgsProcessingProvider::Flag::FlagCompatibleWithVirtualRaster
2024-01-31 10:37:52 +10:00
Nyall Dawson
b85db241c7
Sipify
2024-01-30 19:10:43 +10:00
Nyall Dawson
c5978830c5
Add missing monkey patching
2024-01-30 19:10:43 +10:00
Nyall Dawson
6116319806
Move a processing enum to enum class in Qgis
2024-01-30 19:10:43 +10:00
Nyall Dawson
a36b203f30
Promote some processing enums to enum class, cleanups
2024-01-30 19:10:43 +10:00
Nyall Dawson
26798b84f4
Promote QgsFeatureRequest enums to enum class, move to Qgis
2024-01-30 19:10:43 +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
Alexander Bruy
d8e21a8906
rename QgsMeshRendererScalarSettings enum value from None to NoResampling to avoid issues with Python bindings ( fix #51033 )
2024-01-24 14:52:19 +02:00
Nyall Dawson
ef4f8efdcc
Remove unused 2018 WKT variants, monkey patch for api compatibility
2024-01-17 10:16:32 +10:00
Nyall Dawson
20075f8809
Use consistent case
2024-01-17 10:16:32 +10:00
Nyall Dawson
f2903c7935
Move QgsCoordinateReferenceSystem enums to qgis, promote to enum class
2024-01-17 10:16:32 +10:00
Nyall Dawson
f6addcd0ca
Promote 3d point symbol shape to enum class
2023-12-25 17:54: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