MCPcopy Create free account
hub / github.com/commontk/CTK / msgHandlerEnabled

Method msgHandlerEnabled

Libs/Core/ctkErrorLogAbstractModel.cpp:186–194  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

184
185//------------------------------------------------------------------------------
186bool ctkErrorLogAbstractModel::msgHandlerEnabled(const QString& handlerName) const
187{
188 Q_D(const ctkErrorLogAbstractModel);
189 if (!d->RegisteredHandlers.keys().contains(handlerName))
190 {
191 return false;
192 }
193 return d->RegisteredHandlers.value(handlerName)->enabled();
194}
195
196//------------------------------------------------------------------------------
197void ctkErrorLogAbstractModel::setMsgHandlerEnabled(const QString& handlerName, bool enabled)

Callers 1

ctkErrorLogModelTest1Function · 0.80

Calls 4

containsMethod · 0.45
keysMethod · 0.45
enabledMethod · 0.45
valueMethod · 0.45

Tested by 1

ctkErrorLogModelTest1Function · 0.64