MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / Q_LOGGING_CATEGORY

Function Q_LOGGING_CATEGORY

Src/Parameter.cpp:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <QLoggingCategory>
5
6static Q_LOGGING_CATEGORY(log, "Client.Parameter")
7
8CParameter::CParameter(QObject* parent, const QString& szPrefix)
9 : QObject(parent)
10 , m_szPrefix(szPrefix)
11 , m_bModified(false)
12{
13 CParameter* p = qobject_cast<CParameter*>(parent);
14 if(p) {
15 p->AddCategory(this);
16 bool check = connect(this, SIGNAL(sigChanged()), p, SIGNAL(sigChanged()));
17 Q_ASSERT(check);
18 }
19}
20
21CParameter::~CParameter()
22{}

Callers

nothing calls this directly

Calls 1

AddCategoryMethod · 0.80

Tested by

no test coverage detected