QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
SettingsFact.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <QtCore/QLoggingCategory>
4
#include <QtCore/QObject>
5
#include <QtCore/QString>
6
7
#include "
Fact.h
"
8
9
Q_DECLARE_LOGGING_CATEGORY
(SettingsFactLog)
10
11
12
class
SettingsFact
: public
Fact
13
{
14
Q_OBJECT
15
Q_PROPERTY(
bool
visible MEMBER _visible CONSTANT)
16
17
public
:
18
explicit
SettingsFact
(QObject *parent =
nullptr
);
19
explicit
SettingsFact
(
const
QString &settingsGroup,
FactMetaData
*metaData, QObject *parent =
nullptr
);
20
explicit
SettingsFact
(
const
SettingsFact
&other, QObject *parent =
nullptr
);
21
~SettingsFact
();
22
23
const
SettingsFact
&operator=(
const
SettingsFact
&other);
24
25
// Must be called before any references to fact
26
void
setVisible
(
bool
visible) { _visible = visible; }
27
28
private
slots:
29
void
_rawValueChanged(
const
QVariant &value);
30
31
private
:
32
QString _settingsGroup;
33
bool
_visible =
true
;
34
};
Q_DECLARE_LOGGING_CATEGORY
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
Fact.h
FactMetaData
Definition
FactMetaData.h:19
Fact
A Fact is used to hold a single value within the system.
Definition
Fact.h:19
SettingsFact
A SettingsFact is Fact which holds a QSettings value.
Definition
SettingsFact.h:13
SettingsFact::setVisible
void setVisible(bool visible)
Definition
SettingsFact.h:26
src
FactSystem
SettingsFact.h
Generated by
1.9.8