15 Commits

Author SHA1 Message Date
Nyall Dawson
c5bc81f437 Adapt QgsSettings for PyQt6 enum approach
Since PyQt6 uses native Python enums for flags, we can just
rely on standard enum methods and drop the old metaobject hacks
required for Qt5
2025-09-02 08:03:10 +10:00
Harrissou Sant-anna
f831914584 Fix qgsfunction docs formatting 2025-07-22 10:20:29 +10:00
Malik Blesius
d6c8e2e7a7 swap '$name' and 'function' and replace '<br>' with '\n'
For QgsPyExpressionFunctions swap the positions of the '$name'-placeholder and 'function' to be consistent with native QGIS functions. Also replace the following break-Tag with a newline to get rid of extra space.
2025-05-23 11:20:30 +02:00
Denis Rouzaud
0f032e5f2d run pre-commit on all files 2024-11-29 15:38:02 +01:00
Denis Rouzaud
08aeb133a0
use a custom type id for python implementation
otherwise, QgsSettingsEditorWidgetRegistry is creating a wrapper for this setting type and expects the cpp implemetnation
(QgsSettingsEntryBaseTemplate and not QgsSettingsEntryBase)
2024-10-08 22:19:49 +02:00
Nyall Dawson
c85589e52a Fix malformed docs for register_function, qgsfunction 2024-09-11 08:51:05 +02:00
Nyall Dawson
15c7343a97 Fix indentation of fromFunction docs 2024-09-04 13:54:39 +10:00
Nyall Dawson
9fe90fdca1 Fix new flake8 warnings 2024-08-30 05:47:31 +10:00
Nyall Dawson
98f3ca0650 Don't leak mapping functions into core 2024-08-19 11:16:01 +02:00
Nyall Dawson
1c119bde15 Avoid leaking processing repr into core 2024-08-19 11:16:01 +02:00
Nyall Dawson
fa518f6795 Don't leak fromFunction into core 2024-08-19 11:16:01 +02:00
Nyall Dawson
3dbbb16aa6 Don't leak range repr functions into qgis.core 2024-08-19 11:16:01 +02:00
Nyall Dawson
de01eec1d7 Fix formatting of QgsTask.fromFunction docs
Fixes https://github.com/qgis/pyqgis-api-docs-builder/issues/11
2024-08-19 11:16:01 +02:00
Nyall Dawson
c16a1e2b3d Update enums 2024-01-19 19:44:48 +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