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

Method setMessageHandlerConnection

Libs/Core/ctkErrorLogAbstractModel.cpp:125–136  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

123
124// --------------------------------------------------------------------------
125void ctkErrorLogAbstractModelPrivate::setMessageHandlerConnection(
126 ctkErrorLogAbstractMessageHandler * msgHandler, bool asynchronous)
127{
128 Q_Q(ctkErrorLogAbstractModel);
129
130 msgHandler->disconnect();
131
132 QObject::connect(msgHandler,
133 SIGNAL(messageHandled(QDateTime,QString,ctkErrorLogLevel::LogLevel,QString,ctkErrorLogContext,QString)),
134 q, SLOT(addEntry(QDateTime,QString,ctkErrorLogLevel::LogLevel,QString,ctkErrorLogContext,QString)),
135 asynchronous ? Qt::QueuedConnection : Qt::BlockingQueuedConnection);
136}
137
138// --------------------------------------------------------------------------
139// ctkErrorLogAbstractModel methods

Callers 2

registerMsgHandlerMethod · 0.80
foreachFunction · 0.80

Calls 1

disconnectMethod · 0.80

Tested by

no test coverage detected