MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / processStatusMessage

Method processStatusMessage

pluginbase/src/statusbarmanager.cpp:80–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78bool StatusBarManager::isEnabled() const { return m_enabled; }
79
80void StatusBarManager::processStatusMessage()
81{
82 if(m_status == SBM_IDLE && !m_itemQueue->isEmpty()) { // there is nothing displayed currently
83 auto message = m_itemQueue->takeFirst();
84
85 if(m_enabled) {
86 qDebug(CAT_STATUSBARMANAGER) << "Displaying message:" << message->getText();
87 m_status = SBM_BUSY;
88 Q_EMIT sendStatus(message);
89 // must not block the timer for a permanent widget
90 if(message->getDisplayTime() >= 0) {
91 m_timer->start(message->getDisplayTime());
92 }
93 }
94 }
95}
96
97void StatusBarManager::_pushMessage(const QString &message, int ms)
98{

Callers

nothing calls this directly

Calls 3

getTextMethod · 0.80
getDisplayTimeMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected