mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: add checkbox to show/hide developer menu
Add a checkbox to the preferences page to facilitate selective visibility of the developer menu. With the coresponding function in qmlmanager. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
parent
0eef27376a
commit
a66d876ed0
4 changed files with 61 additions and 0 deletions
|
@ -1583,6 +1583,17 @@ void QMLManager::setLibdcLog(bool value)
|
|||
emit libdcLogChanged();
|
||||
}
|
||||
|
||||
bool QMLManager::developer() const
|
||||
{
|
||||
return m_developer;
|
||||
}
|
||||
|
||||
void QMLManager::setDeveloper(bool value)
|
||||
{
|
||||
m_developer = value;
|
||||
emit developerChanged();
|
||||
}
|
||||
|
||||
bool QMLManager::btEnabled() const
|
||||
{
|
||||
return m_btEnabled;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue