Ref T659, improved handling of override checkbox in FSD details/voice

* the checkbox can be always enabled
* or disabled in read only mode
This commit is contained in:
Klaus Basan
2019-08-06 20:09:00 +02:00
committed by Mat Sutcliffe
parent 4e9bf35cfc
commit d546ebdcba
7 changed files with 60 additions and 3 deletions

View File

@@ -44,6 +44,9 @@ namespace BlackGui
//! Set to GUI
void setValue(const BlackMisc::Network::CFsdSetup &setup);
//! Allow override even in read only mode
void setAlwaysAllowOverride(bool allow);
//! Enabled?
bool isFsdSetupEnabled() const;
@@ -70,7 +73,8 @@ namespace BlackGui
void visibleEnableInfo(bool visible);
QScopedPointer<Ui::CFsdSetupForm> ui;
bool m_visibleEnableInfo = true;
bool m_visibleEnableInfo = true;
bool m_alwaysAllowOverride = false;
};
} // ns
} // ns