Don't return doubles for bools

This commit is contained in:
Nyall Dawson 2025-05-21 14:16:00 +10:00
parent 28008c21c0
commit 0b81fecd7f
3 changed files with 6 additions and 6 deletions

View File

@ -890,7 +890,7 @@ Enable/disable ticks rotation for rotated or reprojected grids.
.. versionadded:: 3.16
%End
double rotatedTicksEnabled() const;
bool rotatedTicksEnabled() const;
%Docstring
Gets whether ticks rotation for rotated or reprojected grids is enabled.
@ -964,7 +964,7 @@ Enable/disable annotations rotation for rotated or reprojected grids.
.. versionadded:: 3.16
%End
double rotatedAnnotationsEnabled() const;
bool rotatedAnnotationsEnabled() const;
%Docstring
Gets whether annotations rotation for rotated or reprojected grids is
enabled.

View File

@ -890,7 +890,7 @@ Enable/disable ticks rotation for rotated or reprojected grids.
.. versionadded:: 3.16
%End
double rotatedTicksEnabled() const;
bool rotatedTicksEnabled() const;
%Docstring
Gets whether ticks rotation for rotated or reprojected grids is enabled.
@ -964,7 +964,7 @@ Enable/disable annotations rotation for rotated or reprojected grids.
.. versionadded:: 3.16
%End
double rotatedAnnotationsEnabled() const;
bool rotatedAnnotationsEnabled() const;
%Docstring
Gets whether annotations rotation for rotated or reprojected grids is
enabled.

View File

@ -821,7 +821,7 @@ class CORE_EXPORT QgsLayoutItemMapGrid : public QgsLayoutItemMapItem
* \see setRotatedTicksEnabled()
* \since QGIS 3.16
*/
double rotatedTicksEnabled() const { return mRotatedTicksEnabled; }
bool rotatedTicksEnabled() const { return mRotatedTicksEnabled; }
/**
* Sets the tick length calculation mode.
@ -877,7 +877,7 @@ class CORE_EXPORT QgsLayoutItemMapGrid : public QgsLayoutItemMapItem
* \see setRotatedAnnotationsEnabled()
* \since QGIS 3.16
*/
double rotatedAnnotationsEnabled() const { return mRotatedAnnotationsEnabled; }
bool rotatedAnnotationsEnabled() const { return mRotatedAnnotationsEnabled; }
/**
* Sets the annotation length calculation mode.