90844 Commits

Author SHA1 Message Date
Mathieu Pellerin
e75a28f15a [editor widget] Fix relation reference widget filter expression's handling of current(_parent)_* variables and functions 2025-03-29 16:06:09 +07:00
qgis-bot
dd033ba99a auto sipify 🍺 2025-03-29 08:46:03 +00:00
Withalion
4d83927709 Fix reseting attribute value on editing tool change 2025-03-29 09:43:11 +01:00
Martin Dobias
ad32431d80 Support for rebasing of scenes 2025-03-29 09:41:22 +01:00
Withalion
f39196f8fd Fix final review issues 2025-03-29 09:41:22 +01:00
Withalion
0fa3b6d3ec Refactor code & add unit tests 2025-03-29 09:41:22 +01:00
Withalion
742a41d009 Fix review issues 2025-03-29 09:41:22 +01:00
Withalion
a83b639bdc Fix camera issues in 3D after clipping scene 2025-03-29 09:41:22 +01:00
Withalion
8aad0d8ab9 Fix review issues + add some goodies
After cross section is selected camera looks eastward at the selected
cross section from distance to see it whole in profile view. User also
sees highlighted area of cross section in 2D canvas.
2025-03-29 09:41:22 +01:00
Withalion
dbef032091 Fix test to compile for qt 6 2025-03-29 09:41:22 +01:00
Withalion
002d39ac48 Refactor clipping tool again & improve tests 2025-03-29 09:41:22 +01:00
Withalion
06b172bfca Refactor clipping tool to set view from profile after clip 2025-03-29 09:41:22 +01:00
Withalion
3f1fbd3ee9 Refactor & fix some stuff 2025-03-29 09:41:22 +01:00
Withalion
e2d5d88fed Implement support for 4 clipping planes 2025-03-29 09:41:22 +01:00
Withalion
5f534ac2db Add perpendicular & parallel clipping planes 2025-03-29 09:41:22 +01:00
Withalion
c115ff6ab4 Add tool to set clipping planes in 3D scene 2025-03-29 09:41:22 +01:00
Julien
99637cc430 fix(PyQt5toPyQt6): check if object has an attribute id
Error fixed running the migration script on a certain plugin:

```python
Traceback (most recent call last):
  File "/usr/local/bin/pyqt5_to_pyqt6.py", line 892, in <module>
    raise SystemExit(main())
                     ^^^^^^
  File "/usr/local/bin/pyqt5_to_pyqt6.py", line 887, in main
    ret |= fix_file(filename, not args.qgis3_incompatible_changes, dry_run)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/pyqt5_to_pyqt6.py", line 461, in fix_file
    visit_call(node, parent)
  File "/usr/local/bin/pyqt5_to_pyqt6.py", line 338, in visit_call
    and _node.args[0].func.id == "QDate"
        ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Attribute' object has no attribute 'id'
```
2025-03-29 08:40:40 +10:00
qgis-bot
f2f0de0bc5 auto sipify 🍺 2025-03-28 21:58:29 +00:00
Nyall Dawson
0a145acaca Fix cppcheck warning 2025-03-29 07:55:27 +10:00
Nyall Dawson
0254fc5fb7 Enforce no namespace rule in sipify 2025-03-29 07:55:27 +10:00
Nyall Dawson
c2e294c3fa Use class with static public methods instead of namespace
Namespaces don't work well with sip, eg losing the class docstrings.
2025-03-29 07:55:27 +10:00
Nyall Dawson
39e37e1fc5 Unify QgsMeshUtils into a single utility class
This was previously a namespace split over multiple files
2025-03-29 07:55:27 +10:00
Alexander Bruy
de901f148d
Merge pull request #61201 from alexbruy/raster-calculator-create-opts-ui
Add creation options UI to raster calculator
2025-03-28 16:45:22 +00:00
Mathieu Pellerin
d1c8ee2cf8 [symbology] Fix font marker not rotating alongside map when data-defined rotation is enabled 2025-03-28 20:43:17 +07:00
Martin Dobias
5054828001 constify variables
Co-authored-by: Stefanos Natsis <uclaros@gmail.com>
2025-03-28 09:53:09 +01:00
Martin Dobias
ffcca406cf use float angles to avoid warnings about narrowing from doubles 2025-03-28 09:53:09 +01:00
Martin Dobias
85f6d0fbc0 globe camera controller: rotate with shift+left mouse button or middle button 2025-03-28 09:53:09 +01:00
Benoit D.-M. - oslandia
a8cfdbf637
Merge pull request #61223 from ptitjano/3daxis-fix
[3d] axis renview init fix
2025-03-28 07:31:58 +01:00
qgis-bot
112eac014f auto sipify 🍺 2025-03-28 04:26:47 +00:00
Nyall Dawson
f480c2a04e Add all missing class brief descriptions 2025-03-28 14:23:56 +10:00
Nyall Dawson
2e47963658 Require brief documentation for everything 2025-03-28 14:23:56 +10:00
Nyall Dawson
150391f1c2 Fix detection of class brief documentation on some doxygen versions 2025-03-28 14:23:56 +10:00
Nyall Dawson
d991480cbe Fix broken emphasis tag warning when building PyQGIS docs 2025-03-28 13:07:03 +10:00
MoritzMoreira
ebb3fe0389 default value of aspect ratio lock
Set the default value of the aspect ratio lock in the save map dialog to locked, in the constructor of QgsMapSaveDialog. Fixes #60024
2025-03-28 12:13:55 +10:00
qgis-bot
657c924383 auto sipify 🍺 2025-03-28 00:05:20 +00:00
Nyall Dawson
80ac3adc65 Update CMakeLists.txt 2025-03-28 10:02:25 +10:00
Nyall Dawson
e051111a33 Suppress cppcheck warning, replace with TODO
This isn't a newly introduced issue
2025-03-28 10:02:25 +10:00
Nyall Dawson
7ac1692707 Try to fix qt6 build 2025-03-28 10:02:25 +10:00
Nyall Dawson
b744a0ebbb Avoid .get() for boolean checks on unique_ptr 2025-03-28 10:02:25 +10:00
Nyall Dawson
4acbc389e2 Avoid .reset( ....release() ) antipattern 2025-03-28 10:02:25 +10:00
Nyall Dawson
1f8a585c5c Make signal const 2025-03-28 10:02:25 +10:00
Nyall Dawson
0c3c74bb4e Avoid clones 2025-03-28 10:02:25 +10:00
Nyall Dawson
aa65f01140 Make more symbol factory methods memory safe 2025-03-28 10:02:25 +10:00
Nyall Dawson
596ddb2f4e More memory safety for loading symbols 2025-03-28 10:02:25 +10:00
Yoann Quenach de Quivillic
2cb83c8b61 Fix #60053 - Disable layer Preview on NULL geometry layers 2025-03-28 07:54:09 +10:00
Jean Felder
44380c8382
qgs3daxis: Do not update the objects if the scene has not been created
When a renderview is created it handles the window resizes by calling
`updateWindowResize()`. In the case of the 3d axis, the renderview
calls `onViewportSizeUpdate()` which itself calls
`Qgs3DAxis::onAxisViewportSizeUpdate()`. This functions updates the
the cube and axis visibility. However, when the renderview is created
the scene has not been created yet and the cube and axis do not
exist. Therefore, this results in a segmentation fault.

This issue is fixed by not doing anything in
`Qgs3DAxis::onAxisViewportSizeUpdate()` if the 3d axis scene has not
been created yet.

Fixes: 75ee85e2309b5aa87e358355c22cf8fdafb87411
2025-03-27 18:55:24 +01:00
Jean Felder
3662932067
qgs3daxisrenderview: Remove some spurious code 2025-03-27 18:31:13 +01:00
bdm-oslandia
fcf102bf4a fix(3d/renderview): migrate from pointer onto renderview to unique_ptr and references.
Framegraph is the only one who have ownership of renderviews.
2025-03-27 13:09:00 +01:00
bdm-oslandia
3b0141eda1 fix(3d/renderview): remove QObject dependency to avoid double free issues 2025-03-27 13:09:00 +01:00
bdm-oslandia
186040a9da fix(3d/renderview): replace mRoot ptr by QPointer to avoid memory leak 2025-03-27 13:09:00 +01:00