Fix dox test

This commit is contained in:
Nyall Dawson 2020-05-18 09:46:59 +10:00 committed by Mathieu Pellerin
parent efecc6f46c
commit 2258e24f8c
2 changed files with 22 additions and 29 deletions

View File

@ -31,21 +31,15 @@ This method considers the temporal range available from layers contained within
returns the maximal combined temporal extent of these layers.
%End
class AnimationExportSettings
{
struct AnimationExportSettings
{
QgsDateTimeRange animationRange;
%TypeHeaderCode
#include "qgstemporalutils.h"
%End
public:
QgsInterval frameDuration;
QgsDateTimeRange animationRange;
QString outputDirectory;
QgsInterval frameDuration;
QString outputDirectory;
QString fileNameTemplate;
QString fileNameTemplate;
};

View File

@ -44,27 +44,26 @@ class CORE_EXPORT QgsTemporalUtils
*/
static QgsDateTimeRange calculateTemporalRangeForProject( QgsProject *project );
class AnimationExportSettings
//! Contains settings relating to exporting animations
struct AnimationExportSettings
{
public:
//! Dictates the overall temporal range of the animation.
QgsDateTimeRange animationRange;
//! Dictates the overall temporal range of the animation.
QgsDateTimeRange animationRange;
//! Duration of individual export frames
QgsInterval frameDuration;
//! Duration of individual export frames
QgsInterval frameDuration;
//! Destination directory for created image files.
QString outputDirectory;
//! Destination directory for created image files.
QString outputDirectory;
/**
* The filename template for exporting the frames.
*
* This must be in format prefix####.format, where number of
* \a # characters represents how many 0's should be left-padded to the frame number
* e.g. my###.jpg will create frames my001.jpg, my002.jpg, etc
*/
QString fileNameTemplate;
/**
* The filename template for exporting the frames.
*
* This must be in format prefix####.format, where number of
* \a # characters represents how many 0's should be left-padded to the frame number
* e.g. my###.jpg will create frames my001.jpg, my002.jpg, etc
*/
QString fileNameTemplate;
};