Skip to content
Permalink
Browse files

Apply clang-tidy readability-avoid-const-params-in-decls fixit

Checks whether a function declaration has parameters that are
top level const.

const values in declarations do not affect the signature of a
function, so they should not be put there.
  • Loading branch information
nyalldawson committed Jun 5, 2018
1 parent e91aed6 commit 2ed144ac597c94e8ba4a0ed7f09bc1d3800d9053
Showing with 567 additions and 561 deletions.
  1. +1 −1 python/analysis/auto_generated/network/qgsvectorlayerdirector.sip.in
  2. +3 −3 python/core/auto_generated/effects/qgseffectstack.sip.in
  3. +7 −7 python/core/auto_generated/effects/qgsimageoperation.sip.in
  4. +2 −2 python/core/auto_generated/effects/qgspainteffect.sip.in
  5. +1 −1 python/core/auto_generated/expression/qgsexpression.sip.in
  6. +2 −2 python/core/auto_generated/geometry/qgscircle.sip.in
  7. +4 −4 python/core/auto_generated/geometry/qgsellipse.sip.in
  8. +1 −1 python/core/auto_generated/geometry/qgsgeometry.sip.in
  9. +2 −2 python/core/auto_generated/geometry/qgsgeometryutils.sip.in
  10. +1 −0 python/core/auto_generated/geometry/qgslinestring.sip.in
  11. +4 −4 python/core/auto_generated/geometry/qgsrectangle.sip.in
  12. +5 −5 python/core/auto_generated/geometry/qgsregularpolygon.sip.in
  13. +1 −1 python/core/auto_generated/geometry/qgstriangle.sip.in
  14. +7 −7 python/core/auto_generated/layout/qgslayout.sip.in
  15. +2 −2 python/core/auto_generated/layout/qgslayoutframe.sip.in
  16. +1 −1 python/core/auto_generated/layout/qgslayoutgridsettings.sip.in
  17. +6 −6 python/core/auto_generated/layout/qgslayoutitem.sip.in
  18. +1 −1 python/core/auto_generated/layout/qgslayoutitemattributetable.sip.in
  19. +1 −1 python/core/auto_generated/layout/qgslayoutitemgroup.sip.in
  20. +3 −3 python/core/auto_generated/layout/qgslayoutitemhtml.sip.in
  21. +1 −1 python/core/auto_generated/layout/qgslayoutitemlegend.sip.in
  22. +2 −2 python/core/auto_generated/layout/qgslayoutitemmap.sip.in
  23. +15 −15 python/core/auto_generated/layout/qgslayoutitemmapgrid.sip.in
  24. +4 −4 python/core/auto_generated/layout/qgslayoutitemmapoverview.sip.in
  25. +2 −2 python/core/auto_generated/layout/qgslayoutitemnodeitem.sip.in
  26. +1 −1 python/core/auto_generated/layout/qgslayoutitempicture.sip.in
  27. +2 −2 python/core/auto_generated/layout/qgslayoutitempolygon.sip.in
  28. +2 −2 python/core/auto_generated/layout/qgslayoutitempolyline.sip.in
  29. +1 −1 python/core/auto_generated/layout/qgslayoutitemscalebar.sip.in
  30. +9 −9 python/core/auto_generated/layout/qgslayoutmeasurement.sip.in
  31. +3 −3 python/core/auto_generated/layout/qgslayoutmeasurementconverter.sip.in
  32. +1 −1 python/core/auto_generated/layout/qgslayoutmodel.sip.in
  33. +3 −3 python/core/auto_generated/layout/qgslayoutmultiframe.sip.in
  34. +7 −7 python/core/auto_generated/layout/qgslayoutpoint.sip.in
  35. +3 −3 python/core/auto_generated/layout/qgslayoutrendercontext.sip.in
  36. +7 −7 python/core/auto_generated/layout/qgslayoutsize.sip.in
  37. +1 −1 python/core/auto_generated/layout/qgslayoutsnapper.sip.in
  38. +12 −12 python/core/auto_generated/layout/qgslayouttable.sip.in
  39. +1 −1 python/core/auto_generated/layout/qgslayoutundostack.sip.in
  40. +4 −4 python/core/auto_generated/layout/qgslayoututils.sip.in
  41. +1 −0 python/core/auto_generated/mesh/qgsmeshdataprovider.sip.in
  42. +1 −1 python/core/auto_generated/qgscacheindex.sip.in
  43. +1 −1 python/core/auto_generated/qgscacheindexfeatureid.sip.in
  44. +1 −1 python/core/auto_generated/qgscolorramp.sip.in
  45. +1 −1 python/core/auto_generated/qgscolorschemeregistry.sip.in
  46. +4 −4 python/core/auto_generated/qgscoordinatereferencesystem.sip.in
  47. +2 −2 python/core/auto_generated/qgscoordinatetransform.sip.in
  48. +1 −1 python/core/auto_generated/qgsmaplayer.sip.in
  49. +1 −1 python/core/auto_generated/qgsmaprenderertask.sip.in
  50. +1 −1 python/core/auto_generated/qgsnetworkcontentfetcherregistry.sip.in
  51. +1 −1 python/core/auto_generated/qgsrendercontext.sip.in
  52. +5 −5 python/core/auto_generated/qgssettings.sip.in
  53. +1 −1 python/core/auto_generated/qgsunittypes.sip.in
  54. +3 −3 python/core/auto_generated/qgsvector.sip.in
  55. +2 −2 python/core/auto_generated/qgsvectorlayer.sip.in
  56. +1 −1 python/core/auto_generated/qgsvectorlayercache.sip.in
  57. +2 −2 python/core/auto_generated/raster/qgscolorrampshader.sip.in
  58. +2 −2 python/core/auto_generated/symbology/qgsfillsymbollayer.sip.in
  59. +1 −1 python/core/auto_generated/symbology/qgssymbollayerutils.sip.in
  60. +1 −1 python/gui/auto_generated/attributetable/qgsdualview.sip.in
  61. +1 −1 python/gui/auto_generated/attributetable/qgsfeaturelistmodel.sip.in
  62. +1 −1 python/gui/auto_generated/attributetable/qgsifeatureselectionmanager.sip.in
  63. +2 −2 python/gui/auto_generated/editorwidgets/qgsdoublespinbox.sip.in
  64. +2 −2 python/gui/auto_generated/editorwidgets/qgsspinbox.sip.in
  65. +1 −1 python/gui/auto_generated/layout/qgslayoutdesignerinterface.sip.in
  66. +1 −1 python/gui/auto_generated/layout/qgslayoutviewrubberband.sip.in
  67. +1 −1 python/gui/auto_generated/layout/qgslayoutviewtool.sip.in
  68. +1 −1 python/gui/auto_generated/processing/qgsprocessingalgorithmconfigurationwidget.sip.in
  69. +2 −2 python/gui/auto_generated/qgsactionmenu.sip.in
  70. +3 −3 python/gui/auto_generated/qgscolorbutton.sip.in
  71. +2 −2 python/gui/auto_generated/qgscolordialog.sip.in
  72. +1 −1 python/gui/auto_generated/qgscolorrampbutton.sip.in
  73. +23 −23 python/gui/auto_generated/qgscolorwidgets.sip.in
  74. +1 −1 python/gui/auto_generated/qgscompoundcolorwidget.sip.in
  75. +2 −2 python/gui/auto_generated/qgsdetaileditemdata.sip.in
  76. +1 −1 python/gui/auto_generated/qgsprojectionselectionwidget.sip.in
  77. +2 −2 python/gui/auto_generated/qgsratiolockbutton.sip.in
  78. +4 −2 python/server/auto_generated/qgsfeaturefilter.sip.in
  79. +4 −2 python/server/auto_generated/qgsfeaturefilterprovidergroup.sip.in
  80. +1 −1 src/analysis/network/qgsgraphdirector.h
  81. +1 −1 src/analysis/network/qgsvectorlayerdirector.h
  82. +1 −1 src/analysis/processing/qgsalgorithmfilter.h
  83. +1 −1 src/analysis/processing/qgsalgorithmtransect.h
  84. +6 −6 src/analysis/raster/qgskde.h
  85. +2 −2 src/app/3d/qgs3dmapcanvas.h
  86. +1 −1 src/app/dwg/qgsdwgimportdialog.h
  87. +2 −2 src/app/dwg/qgsdwgimporter.h
  88. +1 −1 src/app/gps/qgsgpsinformationwidget.h
  89. +1 −1 src/app/layout/qgslayoutattributetablewidget.h
  90. +3 −3 src/app/layout/qgslayoutdesignerdialog.h
  91. +1 −1 src/app/layout/qgslayoutmapgridwidget.h
  92. +1 −1 src/app/layout/qgslayoutmapwidget.h
  93. +1 −1 src/app/qgsattributeactiondialog.h
  94. +2 −2 src/app/qgsattributesformproperties.h
  95. +2 −2 src/app/qgsattributetabledialog.h
  96. +1 −1 src/app/qgsdatumtransformtablewidget.h
  97. +2 −2 src/app/qgslabelpropertydialog.h
  98. +1 −1 src/app/qgsmapsavedialog.h
  99. +7 −7 src/app/qgsmaptooladdrectangle.h
  100. +1 −1 src/app/qgsvectorlayerproperties.h
  101. +1 −1 src/app/vertextool/qgsvertextool.cpp
  102. +2 −2 src/core/auth/qgsauthmanager.h
  103. +3 −3 src/core/effects/qgseffectstack.h
  104. +19 −19 src/core/effects/qgsimageoperation.h
  105. +2 −2 src/core/effects/qgspainteffect.h
  106. +1 −1 src/core/expression/qgsexpression.h
  107. +2 −2 src/core/geometry/qgscircle.h
  108. +4 −4 src/core/geometry/qgsellipse.h
  109. +3 −3 src/core/geometry/qgsgeometry.h
  110. +2 −2 src/core/geometry/qgsgeometryutils.h
  111. +1 −1 src/core/geometry/qgslinestring.h
  112. +4 −4 src/core/geometry/qgsrectangle.h
  113. +8 −8 src/core/geometry/qgsregularpolygon.h
  114. +1 −1 src/core/geometry/qgstriangle.h
  115. +1 −1 src/core/layout/qgscompositionconverter.h
  116. +7 −7 src/core/layout/qgslayout.h
  117. +2 −2 src/core/layout/qgslayoutframe.h
  118. +1 −1 src/core/layout/qgslayoutgridsettings.h
  119. +8 −8 src/core/layout/qgslayoutitem.h
  120. +1 −1 src/core/layout/qgslayoutitemattributetable.h
  121. +1 −1 src/core/layout/qgslayoutitemgroup.h
  122. +3 −3 src/core/layout/qgslayoutitemhtml.h
  123. +1 −1 src/core/layout/qgslayoutitemlegend.h
  124. +2 −2 src/core/layout/qgslayoutitemmap.h
  125. +18 −18 src/core/layout/qgslayoutitemmapgrid.h
  126. +4 −4 src/core/layout/qgslayoutitemmapoverview.h
  127. +2 −2 src/core/layout/qgslayoutitemnodeitem.h
  128. +1 −1 src/core/layout/qgslayoutitempicture.h
  129. +2 −2 src/core/layout/qgslayoutitempolygon.h
  130. +3 −3 src/core/layout/qgslayoutitempolyline.h
  131. +1 −1 src/core/layout/qgslayoutitemscalebar.h
  132. +9 −9 src/core/layout/qgslayoutmeasurement.h
  133. +3 −3 src/core/layout/qgslayoutmeasurementconverter.h
  134. +1 −1 src/core/layout/qgslayoutmodel.h
  135. +3 −3 src/core/layout/qgslayoutmultiframe.h
  136. +7 −7 src/core/layout/qgslayoutpoint.h
  137. +3 −3 src/core/layout/qgslayoutrendercontext.h
  138. +7 −7 src/core/layout/qgslayoutsize.h
  139. +1 −1 src/core/layout/qgslayoutsnapper.h
  140. +12 −12 src/core/layout/qgslayouttable.h
  141. +1 −1 src/core/layout/qgslayoutundostack.h
  142. +6 −6 src/core/layout/qgslayoututils.h
  143. +1 −1 src/core/mesh/qgsmeshdataprovider.h
  144. +1 −1 src/core/mesh/qgsmeshmemorydataprovider.h
  145. +1 −1 src/core/pal/geomfunction.h
  146. +1 −1 src/core/processing/qgsprocessingutils.h
  147. +1 −1 src/core/qgscacheindex.h
  148. +1 −1 src/core/qgscacheindexfeatureid.h
  149. +3 −3 src/core/qgsclipper.h
  150. +1 −1 src/core/qgscolorramp.h
  151. +1 −1 src/core/qgscolorschemeregistry.h
  152. +5 −5 src/core/qgscoordinatereferencesystem.h
  153. +2 −2 src/core/qgscoordinatetransform.h
  154. +1 −1 src/core/qgsmaplayer.h
  155. +1 −1 src/core/qgsmaprenderertask.h
  156. +3 −3 src/core/qgsnetworkcontentfetcherregistry.h
  157. +1 −1 src/core/qgsnetworkcontentfetchertask.h
  158. +1 −1 src/core/qgsrendercontext.h
  159. +6 −6 src/core/qgssettings.h
  160. +1 −1 src/core/qgsunittypes.h
  161. +3 −3 src/core/qgsvector.h
  162. +2 −2 src/core/qgsvectorlayer.h
  163. +1 −1 src/core/qgsvectorlayercache.h
  164. +2 −2 src/core/raster/qgscolorrampshader.h
  165. +1 −1 src/core/raster/qgscubicrasterresampler.h
  166. +4 −4 src/core/symbology/qgsfillsymbollayer.h
  167. +5 −5 src/core/symbology/qgsheatmaprenderer.h
  168. +1 −1 src/core/symbology/qgssymbollayerutils.h
  169. +1 −1 src/gui/attributetable/qgsdualview.h
  170. +1 −1 src/gui/attributetable/qgsfeaturelistmodel.h
  171. +1 −1 src/gui/attributetable/qgsifeatureselectionmanager.h
  172. +3 −3 src/gui/editorwidgets/qgsdoublespinbox.h
  173. +3 −3 src/gui/editorwidgets/qgsspinbox.h
  174. +7 −7 src/gui/effects/qgspainteffectwidget.h
  175. +1 −1 src/gui/layout/qgslayoutdesignerinterface.h
  176. +1 −1 src/gui/layout/qgslayoutmousehandles.h
  177. +1 −1 src/gui/layout/qgslayoutreportsectionlabel.h
  178. +1 −1 src/gui/layout/qgslayoutview.h
  179. +1 −1 src/gui/layout/qgslayoutviewrubberband.h
  180. +1 −1 src/gui/layout/qgslayoutviewtool.h
  181. +1 −1 src/gui/processing/qgsprocessingalgorithmconfigurationwidget.h
  182. +2 −2 src/gui/qgsactionmenu.h
  183. +4 −4 src/gui/qgscolorbutton.h
  184. +2 −2 src/gui/qgscolordialog.h
  185. +1 −1 src/gui/qgscolorrampbutton.h
  186. +1 −1 src/gui/qgscolorswatchgrid.h
  187. +27 −27 src/gui/qgscolorwidgets.h
  188. +2 −2 src/gui/qgscompoundcolorwidget.h
  189. +2 −2 src/gui/qgsdetaileditemdata.h
  190. +2 −2 src/gui/qgsprojectionselectionwidget.h
  191. +2 −2 src/gui/qgsratiolockbutton.h
  192. +3 −3 src/gui/qgsrelationeditorwidget.h
  193. +1 −1 src/gui/symbology/qgssymbollayerwidget.h
  194. +1 −1 src/plugins/georeferencer/qgsgeorefplugingui.h
  195. +1 −1 src/plugins/georeferencer/qgsimagewarper.h
  196. +1 −1 src/plugins/georeferencer/qgsresidualplotitem.h
  197. +1 −1 src/providers/db2/qgsdb2dataitems.h
  198. +2 −2 src/providers/gdal/qgsgdalproviderbase.h
  199. +1 −1 src/providers/mdal/qgsmdalprovider.h
  200. +2 −2 src/server/qgsfeaturefilter.h
  201. +2 −2 src/server/qgsfeaturefilterprovidergroup.h
  202. +5 −5 tests/src/analysis/testqgsprocessing.cpp
  203. +1 −1 tests/src/core/testqgscompositionconverter.cpp
@@ -35,7 +35,7 @@ Determine making the graph from vector line layer
const QString &directDirectionValue,
const QString &reverseDirectionValue,
const QString &bothDirectionValue,
const Direction defaultDirection
Direction defaultDirection
);
%Docstring
Default constructor
@@ -93,7 +93,7 @@ Appends an effect to the end of the stack.
.. seealso:: :py:func:`insertEffect`
%End

bool insertEffect( const int index, QgsPaintEffect *effect /Transfer/ );
bool insertEffect( int index, QgsPaintEffect *effect /Transfer/ );
%Docstring
Inserts an effect at a specified index within the stack.

@@ -104,7 +104,7 @@ Inserts an effect at a specified index within the stack.
.. seealso:: :py:func:`appendEffect`
%End

bool changeEffect( const int index, QgsPaintEffect *effect /Transfer/ );
bool changeEffect( int index, QgsPaintEffect *effect /Transfer/ );
%Docstring
Replaces the effect at a specified position within the stack.

@@ -113,7 +113,7 @@ Replaces the effect at a specified position within the stack.
transferred to the stack object.
%End

QgsPaintEffect *takeEffect( const int index /TransferBack/ );
QgsPaintEffect *takeEffect( int index /TransferBack/ );
%Docstring
Removes an effect from the stack and returns a pointer to it.

@@ -46,15 +46,15 @@ on which is faster for the particular operation.
FlipVertical
};

static void convertToGrayscale( QImage &image, const GrayscaleMode mode = GrayscaleLuminosity );
static void convertToGrayscale( QImage &image, GrayscaleMode mode = GrayscaleLuminosity );
%Docstring
Convert a QImage to a grayscale image. Alpha channel is preserved.

:param image: QImage to convert
:param mode: mode to use during grayscale conversion
%End

static void adjustBrightnessContrast( QImage &image, const int brightness, const double contrast );
static void adjustBrightnessContrast( QImage &image, int brightness, double contrast );
%Docstring
Alter the brightness or contrast of a QImage.

@@ -67,8 +67,8 @@ Alter the brightness or contrast of a QImage.
contrast of the image.
%End

static void adjustHueSaturation( QImage &image, const double saturation, const QColor &colorizeColor = QColor(),
const double colorizeStrength = 1.0 );
static void adjustHueSaturation( QImage &image, double saturation, const QColor &colorizeColor = QColor(),
double colorizeStrength = 1.0 );
%Docstring
Alter the hue or saturation of a QImage.

@@ -79,7 +79,7 @@ Alter the hue or saturation of a QImage.
:param colorizeStrength: double between 0 and 1, where 0 = no colorization and 1.0 = full colorization
%End

static void multiplyOpacity( QImage &image, const double factor );
static void multiplyOpacity( QImage &image, double factor );
%Docstring
Multiplies opacity of image pixel values by a factor.

@@ -118,7 +118,7 @@ using a color ramp.
for the distance transform operation
%End

static void stackBlur( QImage &image, const int radius, const bool alphaOnly = false );
static void stackBlur( QImage &image, int radius, bool alphaOnly = false );
%Docstring
Performs a stack blur on an image. Stack blur represents a good balance between
speed and blur quality.
@@ -133,7 +133,7 @@ speed and blur quality.
alphaOnly is set to false, or ARGB32 if alphaOnly is true
%End

static QImage *gaussianBlur( QImage &image, const int radius ) /Factory/;
static QImage *gaussianBlur( QImage &image, int radius ) /Factory/;
%Docstring
Performs a gaussian blur on an image. Gaussian blur is slower but results in a high
quality blur.
@@ -196,7 +196,7 @@ Returns whether the effect is enabled
.. seealso:: :py:func:`setEnabled`
%End

void setEnabled( const bool enabled );
void setEnabled( bool enabled );
%Docstring
Sets whether the effect is enabled

@@ -215,7 +215,7 @@ effect if the paint effect is used in a :py:class:`QgsEffectStack`.
.. seealso:: :py:func:`setDrawMode`
%End

void setDrawMode( const DrawMode drawMode );
void setDrawMode( DrawMode drawMode );
%Docstring
Sets the draw mode for the effect. This property only has an
effect if the paint effect is used in a :py:class:`QgsEffectStack`.
@@ -388,7 +388,7 @@ This function returns variables in each expression between [% and %].
.. versionadded:: 3.2
%End

static double evaluateToDouble( const QString &text, const double fallbackValue );
static double evaluateToDouble( const QString &text, double fallbackValue );
%Docstring
Attempts to evaluate a text string as an expression to a resultant double
value.
@@ -196,7 +196,7 @@ Note that this method is 2D only and does not consider the z-value of the circle



virtual void setSemiMajorAxis( const double semiMajorAxis );
virtual void setSemiMajorAxis( double semiMajorAxis );

%Docstring
Inherited method. Use setRadius instead.
@@ -206,7 +206,7 @@ Inherited method. Use setRadius instead.
.. seealso:: :py:func:`setRadius`
%End

virtual void setSemiMinorAxis( const double semiMinorAxis );
virtual void setSemiMinorAxis( double semiMinorAxis );

%Docstring
Inherited method. Use setRadius instead.
@@ -34,7 +34,7 @@ Constructor for QgsEllipse.

virtual ~QgsEllipse();

QgsEllipse( const QgsPoint &center, const double semiMajorAxis, const double semiMinorAxis, const double azimuth = 90 );
QgsEllipse( const QgsPoint &center, double semiMajorAxis, double semiMinorAxis, double azimuth = 90 );
%Docstring
Constructs an ellipse by defining all the members.

@@ -146,21 +146,21 @@ Sets the center point.
.. seealso:: :py:func:`rcenter`
%End

virtual void setSemiMajorAxis( const double semiMajorAxis );
virtual void setSemiMajorAxis( double semiMajorAxis );
%Docstring
Sets the semi-major axis.

.. seealso:: :py:func:`semiMajorAxis`
%End

virtual void setSemiMinorAxis( const double semiMinorAxis );
virtual void setSemiMinorAxis( double semiMinorAxis );
%Docstring
Sets the semi-minor axis.

.. seealso:: :py:func:`semiMinorAxis`
%End

void setAzimuth( const double azimuth );
void setAzimuth( double azimuth );
%Docstring
Sets the azimuth (orientation).

@@ -1751,7 +1751,7 @@ The 2 types should match.
}
%End

QgsGeometry smooth( const unsigned int iterations = 1, const double offset = 0.25,
QgsGeometry smooth( unsigned int iterations = 1, double offset = 0.25,
double minimumDistance = -1.0, double maxAngle = 180.0 ) const;
%Docstring
Smooths a geometry by rounding off corners using the Chaikin algorithm. This operation
@@ -102,7 +102,7 @@ supported and is retrieved from the first 3D point amongst ``p1`` and
:return: Whether the lines intersect
%End

static bool segmentIntersection( const QgsPoint &p1, const QgsPoint &p2, const QgsPoint &q1, const QgsPoint &q2, QgsPoint &intersectionPoint /Out/, bool &isIntersection /Out/, const double tolerance = 1e-8, bool acceptImproperIntersection = false );
static bool segmentIntersection( const QgsPoint &p1, const QgsPoint &p2, const QgsPoint &q1, const QgsPoint &q2, QgsPoint &intersectionPoint /Out/, bool &isIntersection /Out/, double tolerance = 1e-8, bool acceptImproperIntersection = false );
%Docstring
Compute the intersection between two segments

@@ -140,7 +140,7 @@ Compute the intersection between two segments
# (True, 'Point (0 0)', True)
%End

static bool lineCircleIntersection( const QgsPointXY &center, const double radius,
static bool lineCircleIntersection( const QgsPointXY &center, double radius,
const QgsPointXY &linePoint1, const QgsPointXY &linePoint2,
QgsPointXY &intersection /In,Out/ );
%Docstring
@@ -220,6 +220,7 @@ segment in the line.

virtual QPolygonF asQPolygonF() const;


virtual bool fromWkb( QgsConstWkbPtr &wkb );

virtual bool fromWkt( const QString &wkt );
@@ -237,13 +237,13 @@ Expand the rectangle so that covers both the original rectangle and the given re
Expand the rectangle so that covers both the original rectangle and the given point.
%End

QgsRectangle operator-( const QgsVector v ) const;
QgsRectangle operator-( QgsVector v ) const;

QgsRectangle operator+( const QgsVector v ) const;
QgsRectangle operator+( QgsVector v ) const;

QgsRectangle &operator-=( const QgsVector v );
QgsRectangle &operator-=( QgsVector v );

QgsRectangle &operator+=( const QgsVector v );
QgsRectangle &operator+=( QgsVector v );

bool isEmpty() const;
%Docstring
@@ -38,7 +38,7 @@ The regular polygon is defined by a center point with a number of sides/vertices
Constructor for QgsRegularPolygon.
%End

QgsRegularPolygon( const QgsPoint &center, const double radius, const double azimuth, const unsigned int numberSides, const ConstructionOption circle );
QgsRegularPolygon( const QgsPoint &center, double radius, double azimuth, unsigned int numberSides, ConstructionOption circle );
%Docstring
Constructs a regular polygon by ``center`` and parameters for the first vertex. An empty regular polygon is returned if ``numberSides`` < 3 or ``ConstructionOption`` isn't valid.

@@ -49,7 +49,7 @@ Constructs a regular polygon by ``center`` and parameters for the first vertex.
:param circle: Option to create the polygon. see ConstructionOption
%End

QgsRegularPolygon( const QgsPoint &center, const QgsPoint &pt1, const unsigned int numberSides, const ConstructionOption circle );
QgsRegularPolygon( const QgsPoint &center, const QgsPoint &pt1, unsigned int numberSides, ConstructionOption circle );
%Docstring
Constructs a regular polygon by ``center`` and another point.

@@ -59,7 +59,7 @@ Constructs a regular polygon by ``center`` and another point.
:param circle: Option to create the polygon inscribed in circle (the radius is the distance between the center and vertices) or circumscribed about circle (the radius is the distance from the center to the midpoints of the sides).
%End

QgsRegularPolygon( const QgsPoint &pt1, const QgsPoint &pt2, const unsigned int numberSides );
QgsRegularPolygon( const QgsPoint &pt1, const QgsPoint &pt2, unsigned int numberSides );
%Docstring
Constructs a regular polygon by two points of the first side.

@@ -123,7 +123,7 @@ Radius is unchanged. The first vertex is reprojected from the new center.
.. seealso:: :py:func:`center`
%End

void setRadius( const double radius );
void setRadius( double radius );
%Docstring
Sets the radius.
Center is unchanged. The first vertex is reprojected from the center with the new radius.
@@ -139,7 +139,7 @@ Radius is unchanged. The center is reprojected from the new first vertex.
.. seealso:: :py:func:`firstVertex`
%End

void setNumberSides( const unsigned int numberSides );
void setNumberSides( unsigned int numberSides );
%Docstring
Sets the number of sides.
If numberSides < 3, the number of sides is unchanged.
@@ -41,7 +41,7 @@ Construct a QgsTriangle from three :py:class:`QgsPoint`.
:param p3: third point
%End

explicit QgsTriangle( const QPointF p1, const QPointF p2, const QPointF p3 );
explicit QgsTriangle( QPointF p1, QPointF p2, QPointF p3 );
%Docstring
Construct a QgsTriangle from three QPointF.

@@ -88,7 +88,7 @@ Returns the items model attached to the layout.



QList<QgsLayoutItem *> selectedLayoutItems( const bool includeLockedItems = true );
QList<QgsLayoutItem *> selectedLayoutItems( bool includeLockedItems = true );
%Docstring
Returns list of selected layout items.

@@ -168,7 +168,7 @@ updating the scene for each one.
.. seealso:: :py:func:`updateZValues`
%End

void updateZValues( const bool addUndoCommands = true );
void updateZValues( bool addUndoCommands = true );
%Docstring
Resets the z-values of items based on their position in the internal
z order list. This should be called after any stacking changes
@@ -237,13 +237,13 @@ Note that template UUIDs are only available while a layout is being restored fro
.. seealso:: :py:func:`itemByUuid`
%End

QgsLayoutItem *layoutItemAt( QPointF position, const bool ignoreLocked = false ) const;
QgsLayoutItem *layoutItemAt( QPointF position, bool ignoreLocked = false ) const;
%Docstring
Returns the topmost layout item at a specified ``position``. Ignores paper items.
If ``ignoreLocked`` is set to true any locked items will be ignored.
%End

QgsLayoutItem *layoutItemAt( QPointF position, const QgsLayoutItem *belowItem, const bool ignoreLocked = false ) const;
QgsLayoutItem *layoutItemAt( QPointF position, const QgsLayoutItem *belowItem, bool ignoreLocked = false ) const;
%Docstring
Returns the topmost layout item at a specified ``position`` which is below a specified ``item``. Ignores paper items.
If ``ignoreLocked`` is set to true any locked items will be ignored.
@@ -301,7 +301,7 @@ Converts a ``point`` into the layout's native units.
.. seealso:: :py:func:`units`
%End

QgsLayoutMeasurement convertFromLayoutUnits( const double length, const QgsUnitTypes::LayoutUnit unit ) const;
QgsLayoutMeasurement convertFromLayoutUnits( double length, QgsUnitTypes::LayoutUnit unit ) const;
%Docstring
Converts a ``length`` measurement from the layout's native units to a specified target ``unit``.

@@ -312,7 +312,7 @@ Converts a ``length`` measurement from the layout's native units to a specified
.. seealso:: :py:func:`units`
%End

QgsLayoutSize convertFromLayoutUnits( const QSizeF &size, const QgsUnitTypes::LayoutUnit unit ) const;
QgsLayoutSize convertFromLayoutUnits( const QSizeF &size, QgsUnitTypes::LayoutUnit unit ) const;
%Docstring
Converts a ``size`` from the layout's native units to a specified target ``unit``.

@@ -323,7 +323,7 @@ Converts a ``size`` from the layout's native units to a specified target ``unit`
.. seealso:: :py:func:`units`
%End

QgsLayoutPoint convertFromLayoutUnits( const QPointF &point, const QgsUnitTypes::LayoutUnit unit ) const;
QgsLayoutPoint convertFromLayoutUnits( const QPointF &point, QgsUnitTypes::LayoutUnit unit ) const;
%Docstring
Converts a ``point`` from the layout's native units to a specified target ``unit``.

@@ -79,7 +79,7 @@ Returns whether the page should be hidden (ie, not included in layout exports) i
.. seealso:: :py:func:`setHidePageIfEmpty`
%End

void setHidePageIfEmpty( const bool hidePageIfEmpty );
void setHidePageIfEmpty( bool hidePageIfEmpty );
%Docstring
Sets whether the page should be hidden (ie, not included in layout exports) if this frame is empty

@@ -97,7 +97,7 @@ Returns whether the background and frame stroke should be hidden if this frame i
.. seealso:: :py:func:`setHideBackgroundIfEmpty`
%End

void setHideBackgroundIfEmpty( const bool hideBackgroundIfEmpty );
void setHideBackgroundIfEmpty( bool hideBackgroundIfEmpty );
%Docstring
Sets whether the background and frame stroke should be hidden if this frame is empty

@@ -55,7 +55,7 @@ Returns the page/snap grid resolution.
.. seealso:: :py:func:`offset`
%End

void setOffset( const QgsLayoutPoint offset );
void setOffset( QgsLayoutPoint offset );
%Docstring
Sets the ``offset`` of the page/snap grid.

0 comments on commit 2ed144a

Please sign in to comment.
You can’t perform that action at this time.