blob: 9434ed6e717e497c242734e55f40d49fdcb77d03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#include <QtDebug>
#include "control/controlproxy.h"
#include "control/control.h"
ControlProxy::ControlProxy(QObject* pParent)
: QObject(pParent),
m_pControl(NULL) {
}
ControlProxy::ControlProxy(const QString& g, const QString& i, QObject* pParent)
: QObject(pParent) {
initialize(ConfigKey(g, i));
}
ControlProxy::ControlProxy(const char* g, const char* i, QObject* pParent)
: QObject(pParent) {
initialize(ConfigKey(g, i));
}
ControlProxy::ControlProxy(const ConfigKey& key, QObject* pParent)
: QObject(pParent) {
initialize(key);
}
void ControlProxy::initialize(const ConfigKey& key, bool warn) {
m_key = key;
// Don't bother looking up the control if key is NULL. Prevents log spew.
if (!key.isNull()) {
m_pControl = ControlDoublePrivate::getControl(key, warn);
}
}
ControlProxy::~ControlProxy() {
//qDebug() << "ControlProxy::~ControlProxy()";
}
|