| 78 | bool StatusBarManager::isEnabled() const { return m_enabled; } |
| 79 | |
| 80 | void 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 | |
| 97 | void StatusBarManager::_pushMessage(const QString &message, int ms) |
| 98 | { |
nothing calls this directly
no test coverage detected