[XSwiftBus] Add message window menu items

- Popup window when a new message arrives
- Automatically hide window message after 5s

ref T359
This commit is contained in:
Roland Winklmeier
2018-09-24 19:12:42 +02:00
committed by Klaus Basan
parent cfc9c3166e
commit ab45757c8d
5 changed files with 55 additions and 4 deletions

View File

@@ -103,6 +103,9 @@ namespace XSwiftBus
//! Toggles the visibility of the message box
void toggle() { if (m_visible) { hide(); } else { show(); } }
//! Is message box currently visible?
bool isVisible() const { return m_visible; }
private:
void show() { m_messageBox.show(); m_visible = true; }
void hide() { m_messageBox.hide(); m_visible = false; }