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:
Klaus Basan
2016-08-09 01:53:35 +02:00
committed by Mathew Sutcliffe
parent 1167735897
commit 6f61d323c2
2 changed files with 15 additions and 2 deletions

View File

@@ -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; }