Skip to content
Permalink
Browse files

Doc and spelling test fixes

  • Loading branch information
nyalldawson committed Mar 12, 2020
1 parent 05fa67a commit ac3409eab164dbbb06fbe93b22bdc42ceffd08b5
@@ -114,24 +114,24 @@ This is calculated from the navigation start time (taken from temporalExtents())
the specified ``frame`` number, and the frame duration (see frameDuration()).
%End

void setFramesPerSeconds( double rate );
void setFramesPerSecond( double rate );
%Docstring
Sets the animation frame ``rate``, in frames per second.

This setting controls the overall playback speed of the animation, i.e. how quickly
a playing animation will advance to the next frame.

.. seealso:: :py:func:`framesPerSeconds`
.. seealso:: :py:func:`framesPerSecond`
%End

double framesPerSeconds() const;
double framesPerSecond() const;
%Docstring
Returns the animation frame rate, in frames per second.

This setting controls the overall playback speed of the animation, i.e. how quickly
a playing animation will advance to the next frame.

.. seealso:: :py:func:`setFramesPerSeconds`
.. seealso:: :py:func:`setFramesPerSecond`
%End

long long totalFrameCount();
@@ -150,7 +150,7 @@ Returns ``True`` if the animation should loop after hitting the end or start fra
%Docstring
Sets whether the animation should ``loop`` after hitting the end or start frame.

.. seealso:: :py:func:`looping`
.. seealso:: :py:func:`isLooping`
%End

signals:
@@ -123,7 +123,7 @@ QgsInterval QgsTemporalNavigationObject::frameDuration() const
return mFrameDuration;
}

void QgsTemporalNavigationObject::setFramesPerSeconds( double framesPerSeconds )
void QgsTemporalNavigationObject::setFramesPerSecond( double framesPerSeconds )
{
if ( framesPerSeconds > 0 )
{
@@ -132,7 +132,7 @@ void QgsTemporalNavigationObject::setFramesPerSeconds( double framesPerSeconds )
}
}

double QgsTemporalNavigationObject::framesPerSeconds() const
double QgsTemporalNavigationObject::framesPerSecond() const
{
return mFramesPerSecond;
}
@@ -133,19 +133,19 @@ class CORE_EXPORT QgsTemporalNavigationObject : public QgsTemporalController
* This setting controls the overall playback speed of the animation, i.e. how quickly
* a playing animation will advance to the next frame.
*
* \see framesPerSeconds()
* \see framesPerSecond()
*/
void setFramesPerSeconds( double rate );
void setFramesPerSecond( double rate );

/**
* Returns the animation frame rate, in frames per second.
*
* This setting controls the overall playback speed of the animation, i.e. how quickly
* a playing animation will advance to the next frame.
*
* \see setFramesPerSeconds()
* \see setFramesPerSecond()
*/
double framesPerSeconds() const;
double framesPerSecond() const;

/**
* Returns the total number of frames for the navigation.
@@ -162,7 +162,7 @@ class CORE_EXPORT QgsTemporalNavigationObject : public QgsTemporalController
/**
* Sets whether the animation should \a loop after hitting the end or start frame.
*
* \see looping()
* \see isLooping()
*/
void setLooping( bool loop );

@@ -230,8 +230,8 @@ void QgsRasterLayerTemporalPropertiesWidget::resetDatesButton_clicked()
mEndTemporalDateTimeEdit->setDateTime( layerFixedRange.end() );
}
else
mLabel->setText( tr( "Cant reset dates, there is no valid layer's "
"capabilities temporal range" ) );
mLabel->setText( tr( "Cannot reset dates - no temporal metadata "
"is available for this layer" ) );
}

void QgsRasterLayerTemporalPropertiesWidget::referenceCheckBox_clicked()

0 comments on commit ac3409e

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