Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Doc and spelling test fixes
  • Loading branch information
nyalldawson committed Mar 12, 2020
1 parent 05fa67a commit ac3409e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions python/core/auto_generated/qgstemporalnavigationobject.sip.in
Expand Up @@ -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();
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgstemporalnavigationobject.cpp
Expand Up @@ -123,7 +123,7 @@ QgsInterval QgsTemporalNavigationObject::frameDuration() const
return mFrameDuration;
}

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

double QgsTemporalNavigationObject::framesPerSeconds() const
double QgsTemporalNavigationObject::framesPerSecond() const
{
return mFramesPerSecond;
}
Expand Down
10 changes: 5 additions & 5 deletions src/core/qgstemporalnavigationobject.h
Expand Up @@ -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.
Expand All @@ -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 );

Expand Down
4 changes: 2 additions & 2 deletions src/gui/raster/qgsrasterlayertemporalpropertieswidget.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit ac3409e

Please sign in to comment.