Skip to content
Permalink
Browse files

Allow transform effect rotation from -360 to 360

  • Loading branch information
nyalldawson committed May 30, 2017
1 parent 3cd99c3 commit f9c48bf0cec2dd1a346f6724675ee6977493fe8d
@@ -157,16 +157,14 @@ class QgsTransformEffect : QgsPaintEffect

void setRotation( const double rotation );
%Docstring
Sets the transform rotation.
\param rotation degrees to rotate, clockwise
.. seealso:: rotation
Sets the transform ``rotation``, in degrees clockwise.
.. seealso:: rotation()
%End

double rotation() const;
%Docstring
Returns the transform rotation.
:return: rotation in degrees clockwise
.. seealso:: setRotation
Returns the transform rotation, in degrees clockwise.
.. seealso:: setRotation()
:rtype: float
%End

@@ -149,15 +149,15 @@ class CORE_EXPORT QgsTransformEffect : public QgsPaintEffect
*/
double scaleY() const { return mScaleY; }

/** Sets the transform rotation.
* \param rotation degrees to rotate, clockwise
* \see rotation
/**
* Sets the transform \a rotation, in degrees clockwise.
* \see rotation()
*/
void setRotation( const double rotation ) { mRotation = rotation; }

/** Returns the transform rotation.
* \returns rotation in degrees clockwise
* \see setRotation
/**
* Returns the transform rotation, in degrees clockwise.
* \see setRotation()
*/
double rotation() const { return mRotation; }

@@ -577,6 +577,7 @@ QgsTransformWidget::QgsTransformWidget( QWidget *parent )
<< QgsUnitTypes::RenderPoints << QgsUnitTypes::RenderInches );
mSpinTranslateX->setClearValue( 0 );
mSpinTranslateY->setClearValue( 0 );
mRotationSpinBox->setClearValue( 0 );
mSpinShearX->setClearValue( 0 );
mSpinShearY->setClearValue( 0 );
mSpinScaleX->setClearValue( 100.0 );
@@ -117,6 +117,9 @@
<property name="suffix">
<string> °</string>
</property>
<property name="minimum">
<double>-360.000000000000000</double>
</property>
<property name="maximum">
<double>360.000000000000000</double>
</property>

0 comments on commit f9c48bf

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