mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 02:05:43 +08:00
refs #720, improved menu action
* show info when DB is not available * allow to grey out menus (better as hiding them)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
1167735897
commit
6f61d323c2
@@ -99,6 +99,9 @@ namespace BlackGui
|
||||
//! Has icon?
|
||||
bool hasIcon() const { return !m_icon.isNull(); }
|
||||
|
||||
//! Set enabled / disabled (allows to gray out)
|
||||
void setEnabled(bool enabled);
|
||||
|
||||
//! Conversion
|
||||
operator QAction *() const { return this->m_action; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user