More review addressed

This commit is contained in:
Mathieu Pellerin 2024-04-07 11:33:18 +07:00 committed by Nyall Dawson
parent e9b3408a6c
commit 6dafb5d495
4 changed files with 12 additions and 12 deletions

View File

@ -168,7 +168,7 @@ Sets the band number from which temporal values should be taken.
.. versionadded:: 3.38
%End
const QDateTime temporalRepresentationOffset() const;
QDateTime temporalRepresentationOffset() const;
%Docstring
Returns the temporal offset, which is a fixed datetime which should be added to individual pixel values
from the layer.
@ -196,7 +196,7 @@ from the layer.
.. versionadded:: 3.38
%End
const QgsInterval temporalRepresentationScale() const;
const QgsInterval &temporalRepresentationScale() const;
%Docstring
Returns the scale, which is an interval factor which should be applied to individual pixel
values from the layer.
@ -210,7 +210,7 @@ values from the layer.
.. versionadded:: 3.38
%End
void setTemporalRepresentationScale( QgsInterval scale );
void setTemporalRepresentationScale( const QgsInterval &scale );
%Docstring
Sets the scale, which is an interval factor which should be applied to individual pixel
values from the layer.

View File

@ -168,7 +168,7 @@ Sets the band number from which temporal values should be taken.
.. versionadded:: 3.38
%End
const QDateTime temporalRepresentationOffset() const;
QDateTime temporalRepresentationOffset() const;
%Docstring
Returns the temporal offset, which is a fixed datetime which should be added to individual pixel values
from the layer.
@ -196,7 +196,7 @@ from the layer.
.. versionadded:: 3.38
%End
const QgsInterval temporalRepresentationScale() const;
const QgsInterval &temporalRepresentationScale() const;
%Docstring
Returns the scale, which is an interval factor which should be applied to individual pixel
values from the layer.
@ -210,7 +210,7 @@ values from the layer.
.. versionadded:: 3.38
%End
void setTemporalRepresentationScale( QgsInterval scale );
void setTemporalRepresentationScale( const QgsInterval &scale );
%Docstring
Sets the scale, which is an interval factor which should be applied to individual pixel
values from the layer.

View File

@ -293,7 +293,7 @@ void QgsRasterLayerTemporalProperties::setBandNumber( int number )
mBandNumber = number;
}
const QDateTime QgsRasterLayerTemporalProperties::temporalRepresentationOffset() const
QDateTime QgsRasterLayerTemporalProperties::temporalRepresentationOffset() const
{
return mTemporalRepresentationOffset;
}
@ -306,12 +306,12 @@ void QgsRasterLayerTemporalProperties::setTemporalRepresentationOffset( const QD
mTemporalRepresentationOffset = offset;
}
const QgsInterval QgsRasterLayerTemporalProperties::temporalRepresentationScale() const
const QgsInterval &QgsRasterLayerTemporalProperties::temporalRepresentationScale() const
{
return mTemporalRepresentationScale;
}
void QgsRasterLayerTemporalProperties::setTemporalRepresentationScale( QgsInterval scale )
void QgsRasterLayerTemporalProperties::setTemporalRepresentationScale( const QgsInterval &scale )
{
if ( mTemporalRepresentationScale == scale )
return;

View File

@ -171,7 +171,7 @@ class CORE_EXPORT QgsRasterLayerTemporalProperties : public QgsMapLayerTemporalP
* \see setTemporalRepresentationOffset()
* \since QGIS 3.38
*/
const QDateTime temporalRepresentationOffset() const;
QDateTime temporalRepresentationOffset() const;
/**
* Sets the temporal offset, which is a fixed datetime which should be added to individual pixel values
@ -191,7 +191,7 @@ class CORE_EXPORT QgsRasterLayerTemporalProperties : public QgsMapLayerTemporalP
* \see setTemporalRepresentationScale()
* \since QGIS 3.38
*/
const QgsInterval temporalRepresentationScale() const;
const QgsInterval &temporalRepresentationScale() const;
/**
* Sets the scale, which is an interval factor which should be applied to individual pixel
@ -201,7 +201,7 @@ class CORE_EXPORT QgsRasterLayerTemporalProperties : public QgsMapLayerTemporalP
* \see temporalRepresentationScale()
* \since QGIS 3.38
*/
void setTemporalRepresentationScale( QgsInterval scale );
void setTemporalRepresentationScale( const QgsInterval &scale );
QDomElement writeXml( QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context ) override;