QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
qgstemporalproperty.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgstemporalproperty.cpp
3 ---------------
4 begin : January 2020
5 copyright : (C) 2020 by Samweli Mwakisambwe
6 email : samweli at kartoza dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18
19#include "qgstemporalproperty.h"
20#include "moc_qgstemporalproperty.cpp"
21
22QgsTemporalProperty::QgsTemporalProperty( QObject *parent, bool enabled )
23 : QObject( parent )
24 , mActive( enabled )
25{
26}
27
29{
30 if ( mActive != active )
31 {
32 mActive = active;
33 emit changed();
34 }
35}
36
38{
39 return mActive;
40}
void changed()
Emitted when the temporal properties have changed.
bool isActive() const
Returns true if the temporal property is active.
void setIsActive(bool active)
Sets whether the temporal property is active.
QgsTemporalProperty(QObject *parent=nullptr, bool enabled=false)
Constructor for QgsTemporalProperty, with the specified parent object.