87542 Commits

Author SHA1 Message Date
Julien Cabieces
87142708d1 feat(Expression): Make darker/lighter works with color object
and not just string representation
2024-09-03 09:46:26 +02:00
Julien Cabieces
f4b463db05 feat(Expression): Make (set_)color_part functions works with object
not just string representation
2024-09-03 09:46:26 +02:00
Julien Cabieces
dd41e147f8 feat(Expression): Add color_mix function
It takes string representation or color object as arguments so the
function can work with CMYK color without changing its color type and converting it to RGB.
2024-09-03 09:46:26 +02:00
Julien Cabieces
0b034b7e87 feat(Expression): Make color_grayscale_average works with object
So the function can work with CMYK color without changing its color
type and converting it to RGB.
2024-09-03 09:46:26 +02:00
Nyall Dawson
b53968c771
Fix warning 2024-09-03 08:16:56 +10:00
Julien Cabieces
1fe370540d fix(Expression): clamp color components 2024-09-03 07:39:05 +10:00
Julien Cabieces
7829b378ea fix(Expression): Returns QVariant for invalid color 2024-09-03 07:39:05 +10:00
Julien Cabieces
3fd6c3bdfe feat(Expression): Add color_hsvf
Contrary to color_hsv, color_hsvf allows to load a color from float
component (and not int) into a QColor object (and not a string representation).
2024-09-03 07:39:05 +10:00
Julien Cabieces
15bae7e6ab feat(Expression): Add color_hslf
Contrary to color_hsl, color_hslf allows to load a color from float
component (and not int) into a QColor object (and not a string representation).
2024-09-03 07:39:05 +10:00
Julien Cabieces
53db863fe2 feat(Expression): Add color_cmykf
Contrary to color_cmyk, color_cmykf allows to load a color from float
component (and not int) into a QColor object (and not a string representation).
2024-09-03 07:39:05 +10:00
Julien Cabieces
3203704931 feat(Expression): Add color_rgbf
Contrary to color_rgb, color_rgbf allows to load a color from float
component (and not int) into a QColor object (and not a string representation).
2024-09-03 07:39:05 +10:00
Benoit D.-M. - oslandia
1449978816
Fix/export 3d scene (#58541)
* fix(qgs3dexportobject): saveTo was using bad algorithm to access vertices from indexes.

As we can have holes in the face list and we only write vertices from theses faces then
the vertex list in the obj is not the whole from mVertexPosition! So we have a like
"compressed" the section vertex/normal.

Then when saving the indexes (ie. faces) we do not need to use the 'mIndexes[i]' value
anymore but only the 'i' value.

* fix(testqgs3dutils): use QGSCOMPARELONGSTR and files instead of long strings

* fix(qgs3dsceneexporter): allow findAttribute to find attribute only by type

* fix(qgs3dsceneexporter): improve null/no data detection and error log.

* fix(3dsceneexporter): improve code readability and index filtering to avoid feature duplication

* fix(testqgs3drendering): improve 3d scene export tests

* use QGSCOMPARELONGSTR
* improve generated file names
* add more complex cases with buildings and dem.
2024-09-03 07:36:48 +10:00
Julien Cabieces
94863b435e
Merge pull request #58534 from nyalldawson/fix_3d_import
Fix PyQGIS 3D module patching
2024-09-02 11:21:11 +02:00
Julien Cabieces
e6ae6a3981
Merge pull request #58553 from nyalldawson/fix_deprecated_enum_values_documented
Fix PyQGIS docstrings for monkey patched enum values
2024-09-02 11:04:37 +02:00
Denis Rouzaud
4d150a8270
support multiple URLs/sources for vector tiles (#58155)
* support multiple URLs/sources for vector tiles

* fix ++ op

* fix test

* address review

* review suggestions

* fix clazy warnings

* fix clazy warnings

* again
2024-09-02 09:08:13 +02:00
Nyall Dawson
50408edac6
Fix PyQGIS docstrings for monkey patched enum values
We should be using the new name for the enum value instead
of the old one in the enum class docstring.

Move the old compatible name to an extra note
"Available as ``xx.yy`` in older QGIS releases."

Fixes #49171
2024-09-02 11:43:23 +10:00
Nyall Dawson
1a974f5841 Update 2024-09-02 11:42:12 +10:00
Nyall Dawson
ef0289f3ec Fix formatting of Python ..deprecated annotations in docstrings
Fixes https://github.com/qgis/pyqgis-api-docs-builder/issues/174
2024-09-02 11:42:12 +10:00
Nyall Dawson
081c258e12 Require version number for \deprecated annotations 2024-09-02 11:42:12 +10:00
Nyall Dawson
d070534729 Add "3.40" as version for all \deprecated annotations without version
Since we didn't capture the actual version information at the
time of deprecating these, it's basically impossible to retrieve
that information now. Use the most conservative version possible
and tag all these with version 3.40 instead.
2024-09-02 11:42:12 +10:00
Nyall Dawson
3fda72f7d7 Standardise some deprecated annotations 2024-09-02 11:42:12 +10:00
Nyall Dawson
4febad6f0c Standardise some deprecated annotations 2024-09-02 11:42:12 +10:00
Nyall Dawson
765cbb32db Standardise some deprecated annotations 2024-09-02 11:42:12 +10:00
Nyall Dawson
9ea1ddbe64 Apply suggestions from code review 2024-09-02 09:54:52 +10:00
Simon Lopez
79a34fd721 Rename elevation profile widget
This adds a menu item in the Options sub-menu to change the windows name
to something meaningfull to the user.
2024-09-02 09:54:52 +10:00
dependabot[bot]
5d02a5bbf8 Bump tj-actions/changed-files from 44 to 45
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 44 to 45.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/changed-files/compare/v44...v45)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-02 08:25:34 +10:00
Nyall Dawson
343709f48a Always use correct \since annotation for enum values 2024-09-01 02:29:17 +10:00
Nyall Dawson
d318cdb992 Standardise some since annotations 2024-09-01 02:29:17 +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
2215a8c5df Revert "Always enable Live Update in layer styling dock"
This reverts commit 5d11440dc1212f98a433d40a8e0752de4001ed3d.
2024-08-31 07:12:42 +10:00
Nyall Dawson
9e08187c22 Always enable Live Update in layer styling dock
Remove "Live Update" and "Apply" buttons, and just always enable
live updates
2024-08-31 07:12:42 +10:00
Nyall Dawson
c875172955 Disable "Apply" button when "Live update" enabled in styling dock
Fixes #51894
2024-08-31 07:12:42 +10:00
qgis-bot
8cab8729ca auto sipify 🍺 2024-08-30 20:23:07 +00:00
Nyall Dawson
a6f5c50b36 Move some style related enums out of global namespace 2024-08-31 06:20:02 +10:00
Nyall Dawson
9f5138d89c Fix clang-tidy warning 2024-08-31 06:19:26 +10:00
Nyall Dawson
1d41e606cc Fix test on qt6 2024-08-31 06:19:26 +10:00
Nyall Dawson
afe0b2d533 Fix clang-tidy warnings 2024-08-31 06:19:26 +10:00
Nyall Dawson
adc1fe871b Test masks 2024-08-31 06:19:26 +10:00
Nyall Dawson
1d83922171 Move constructors don't need documentation 2024-08-31 06:19:26 +10:00
Nyall Dawson
452d597cbc Don't show private layers in print layout legends by default
When a print layout legend is in auto mode, private layers should
not be included

Fixes #51427
2024-08-31 06:19:26 +10:00
Nyall Dawson
71c7b63cf6 Allow filtering private layers from QgsLayerTreeFilterProxyModel 2024-08-31 06:19:26 +10:00
Nyall Dawson
d55b4ea066 Expose proxy model for QgsLegendRenderer to allow filtering rendered content 2024-08-31 06:19:26 +10:00
Nyall Dawson
a24fcef948 Hide private layers in layout legend settings when in auto-update mode
Refs #51427
2024-08-31 06:19:26 +10:00
qgis-bot
d4e74c036f auto sipify 🍺 2024-08-30 13:10:17 +00:00
Denis Rouzaud
ba46a95aca
wedge buffers support start and end angles (#58473) 2024-08-30 15:07:08 +02:00
qgis-bot
5215f3351a auto sipify 🍺 2024-08-30 02:22:33 +00:00
Nyall Dawson
a5a3bf9ee8 Fix some more causes of warnings when building PyQGIS docs 2024-08-30 12:19:29 +10:00
Nyall Dawson
da317dd8de
Fix PyQGIS 3D module patching
The module patching for _3d was not working at all, because
the same logic which works for other modules with a private _module
copy clashed with the approach of exposing the public 3d module
as qgis._3d

Work around this by renaming the private internal module as _3d_p,
so that the monkey patching logic from sip is correctly run
when the module is loaded.

Fixes broken API in 3d module for renamed enums, and fixes the
broken PyQGIS doc for the 3d module
2024-08-30 11:57:42 +10:00
qgis-bot
859ea74116 auto sipify 🍺 2024-08-30 00:12:48 +00:00
Denis Rouzaud
72f46762fd Update src/core/locator/qgslocatormodelbridge.cpp
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
2024-08-30 10:09:41 +10:00