QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
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
21
#include "moc_qgstemporalproperty.cpp"
22
23
QgsTemporalProperty::QgsTemporalProperty
( QObject *parent,
bool
enabled )
24
: QObject( parent )
25
, mActive( enabled )
26
{}
27
28
void
QgsTemporalProperty::setIsActive
(
bool
active )
29
{
30
if
( mActive != active )
31
{
32
mActive = active;
33
emit
changed
();
34
}
35
}
36
37
bool
QgsTemporalProperty::isActive
()
const
38
{
39
return
mActive;
40
}
QgsTemporalProperty::changed
void changed()
Emitted when the temporal properties have changed.
QgsTemporalProperty::isActive
bool isActive() const
Returns true if the temporal property is active.
Definition
qgstemporalproperty.cpp:37
QgsTemporalProperty::setIsActive
void setIsActive(bool active)
Sets whether the temporal property is active.
Definition
qgstemporalproperty.cpp:28
QgsTemporalProperty::QgsTemporalProperty
QgsTemporalProperty(QObject *parent=nullptr, bool enabled=false)
Constructor for QgsTemporalProperty, with the specified parent object.
Definition
qgstemporalproperty.cpp:23
qgstemporalproperty.h
Generated on
for QGIS API Documentation by
1.17.0