refs #661, info in context menu when force reload is unavailable

(KB/RW slack discussion)
This commit is contained in:
Klaus Basan
2016-05-24 18:21:30 +02:00
parent 54b1234f7f
commit 0ff7791532
3 changed files with 32 additions and 0 deletions

View File

@@ -60,6 +60,12 @@ namespace BlackGui
//! Set a checkable action, QAction::setChecked
void setActionChecked(bool checked);
//! Enabled action?
bool isActionEnabled() const;
//! Enable action (allow gray out)
void setActionEnabled(bool enabled);
//! Path
const QString &getPath() const { return m_path; }
@@ -241,6 +247,9 @@ namespace BlackGui
//! Add action
CMenuAction addAction(const QIcon &actionIcon, const QString &text, const QString &path, QObject *actionOwner, const BlackMisc::CSlot<void()> &slot, const QKeySequence &shortcut = 0);
//! Add action without slot
CMenuAction addAction(const QIcon &actionIcon, const QString &text, const QString &path);
//! Add action
CMenuAction addAction(const QIcon &actionIcon, const QString &text, const QString &path, const BlackMisc::CSlot<void()> &slot, const QKeySequence &shortcut = 0);