1561 Commits

Author SHA1 Message Date
Denis Rouzaud
9059f200a0
Add QtQuickWidgets pyqt5_to_pyqt6.py (#60128)
* Add QtQuickWidgets pyqt5_to_pyqt6.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update pyqt5_to_pyqt6.py

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-16 11:49:10 +01:00
Julien Cabieces
8e7781d4d9
Merge pull request #60073 from nicogodet/add-warning-pyqt5to6
[pyqt5to6] Add warning if PyQt5 if found
2025-01-07 16:14:39 +01:00
Nicolas Godet
9515c1ac29 [pyqt5to6] Add warning if PyQt5 if found 2025-01-07 14:22:08 +01:00
David Koňařík
4d86676c35 Fix SIP build errors by using /NoTypeName/
The typedef is only present in the .sip file, but without this
annotation SIP assumes it also exists in QGIS headers. This didn't
completely break the build, since we concatenate multiple SIP headers
into larger files, so the typedefs from one part "fixed" another. Run
sip-build without --concatenate to see the issue clearly.

This fix is currently sadly not fully effective due to a SIP bug:
https://github.com/Python-SIP/sip/issues/66
2025-01-06 21:31:40 +01:00
Matthias Kuhn
340861dc00 Remove PY_2TO3
let's say welcome to 2025
2025-01-01 08:55:56 +09:00
Nyall Dawson
667ba086e3 Fix mode for script 2024-12-18 19:12:29 +10:00
Julien Cabieces
0fdb3508a5 api(Deprecated): Remove strong requirement on \deprecated
Because some method (only QgsGeometry::set actually) can be deprecated
only in python, not in C++. But \deprecated triggers the need for Q_DECL_DEPRECATED
2024-12-17 09:06:44 +01:00
Julien Cabieces
51dc2ec2ac api(Deprecated): Generate always /Deprecated/ annotation with text
Use cmake to remove text when SIP version is less than 6.9.0
2024-12-17 09:06:44 +01:00
Julien Cabieces
92db5c2d82 feat(Deprecated): Add message to SIP deprecated annotation
Works only with SIP 6.9.0
2024-12-17 09:05:46 +01:00
Denis Rouzaud
7306e5b170
Merge branch 'master' into more-clang 2024-12-11 07:53:23 +01:00
Matthias Kuhn
1dd6a4ac72
Merge pull request #59769 from sebastic/appstream
Fix AppStream metadata.
2024-12-11 07:34:21 +01:00
Denis Rouzaud
eef2e2045f
add server and 3d to clang-format 2024-12-10 14:22:51 +01:00
Denis Rouzaud
5fdf6dd77a fix SIP_SKIP and SIP_FORCE being left alone 2024-12-07 05:16:00 +10:00
Denis Rouzaud
8c4b08dc07 fix windows build take 2 2024-12-07 05:16:00 +10:00
Denis Rouzaud
72cbfe5124 add gui to clang-format 2024-12-07 05:16:00 +10:00
Bas Couwenberg
b9f1da5b8e Fix AppStream metadata. 2024-12-06 09:16:26 +01:00
Nyall Dawson
341b7e5af7
Fix cppcheck 2024-12-06 06:24:08 +10:00
Denis Rouzaud
244a7c1bd1 [sipify] exit type header code 2024-12-05 13:19:50 +01:00
Denis Rouzaud
25ad1b8e38 [sipify] do not exit header code if commentting 2024-12-05 13:19:50 +01:00
Denis Rouzaud
2f2c54095c Revert "[sipify] close type header code earlier"
This reverts commit 0fe88cf945fd2da710453e2a55a4cdc4e2f82802.
2024-12-05 13:19:50 +01:00
Denis Rouzaud
7f4ae01b8c [sipify] better handling of type header includes (multiple) 2024-12-05 13:19:50 +01:00
Denis Rouzaud
05062c386f [sipify] better handling of type header includes 2024-12-05 13:19:50 +01:00
Denis Rouzaud
3a08533103 [sipify] close type header code earlier 2024-12-05 13:19:50 +01:00
Denis Rouzaud
ee8cc2c2ad comment methodcode 2024-12-05 13:19:50 +01:00
Denis Rouzaud
c12f94c316 [sipify] supports code in comment 2024-12-05 13:19:50 +01:00
Denis Rouzaud
e0c145386b remove auto-generated files from spell check 2024-12-05 13:19:50 +01:00
Denis Rouzaud
c2d98700a3 add analysis to clang-format 2024-12-05 13:19:50 +01:00
Denis Rouzaud
4ddc236145
[sipify] Fix staticmethod (#59517)
* [sipify] Fix staticmethod 

When building bindings for Kadas, we get an AttributeError on startup and not a NameError.

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-12-03 08:43:55 +01:00
Denis Rouzaud
6933b1352f
fix prepare_commit.sh (#59713)
* fix prepare_commit.sh

* fix regex
2024-12-03 08:24:03 +01:00
Denis Rouzaud
5b60c23a49 discard non-sipified directories in prepare_commit and verify_indent 2024-11-30 15:07:24 +01:00
Denis Rouzaud
79812e01ac add clang format 2024-11-30 15:07:24 +01:00
Denis Rouzaud
0f032e5f2d run pre-commit on all files 2024-11-29 15:38:02 +01:00
Denis Rouzaud
77ba6af96b remove python files from verify indent 2024-11-29 15:38:02 +01:00
Denis Rouzaud
8083a6dae7 remove python files from prepare_commit 2024-11-29 15:38:02 +01:00
Denis Rouzaud
3ddf3917f6
follow-up 2024-11-18 15:38:52 +01:00
Denis Rouzaud
8a453a7bb5
fix nested enums 2024-11-18 15:22:24 +01:00
Denis Rouzaud
a135e21727
[sipify] allow namespace/class spec in static const declarations 2024-11-18 10:00:48 +01:00
Nyall Dawson
487ade952d Use gdal_minmax_element.hpp for optimised min/max element retrieval 2024-11-05 11:07:54 +11:00
Nyall Dawson
fe78267c66 'throw' is not used/required on sip >=6
And generates hundreds of deprecation warnings during build
2024-11-04 15:13:37 +10:00
Matthias Kuhn
8c5210c9de flake 2024-10-26 07:41:33 +02:00
Matthias Kuhn
06000b2acc Add includemocs.py
See https://github.com/KDABLabs/KDToolBox/tree/master/qt/includemocs
https://planet.kde.org/friedrich-kossebau-2023-06-28-include-also-moc-files-of-headers/
2024-10-26 07:34:43 +02:00
Nyall Dawson
8e6ffb16bc Add QgsSetRequestInitiatorClass macro to cppcheck 2024-10-22 12:00:23 +10:00
Mathieu Pellerin
004ed6102b [fonts] Fix download of fonts from google repository by encoding [ and ] 2024-10-21 13:43:26 +10:00
Nyall Dawson
a6ccf6e6a7 Define macros for cppcheck 2024-10-15 15:00:05 +10:00
Denis Rouzaud
ca3b40cb8c
Merge pull request #58568 from gacarrillor/stacked_diagrams
[feature] Introduce stacked diagrams
2024-09-27 07:54:49 +02:00
Julien Cabieces
a6f34a37bc
fix(pyqt5To6): Avoid endless recursion because of baseClass (#58785)
baseClass is an attribute added by sipify script
Fixes #58659
2024-09-18 12:35:39 +02:00
Germán Carrillo
614ce76156 [gui] Introduce StackedDiagramProperties and use it as dialog and as vector properties page. For the moment, it works with single diagrams, hiding controls for stacked diagrams 2024-09-17 23:56:22 -05:00
Germán Carrillo
75483703cf Introduce QgsStackedDiagram to create compound diagrams like population pyramids. Use Stacked as internal name for stacked diagrams and StackedBar for stacked bar diagrams. Add subDiagram parameter to QgsDiagramRenderer::diagramSize() and QgsDiagramRenderer::diagramSettings() (single and interpolated) to get subdiagrams info. 2024-09-17 23:55:33 -05: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
Raymond Nijssen
6ac0baf7b1 Add translator Razan Elnour 2024-09-11 18:38:44 +00:00