mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 10:45:37 +08:00
[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:
committed by
Klaus Basan
parent
cfc9c3166e
commit
ab45757c8d
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user