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:
Joakim Bygdell 2017-07-19 16:35:46 +02:00 committed by Dirk Hohndel
parent 0eef27376a
commit a66d876ed0
4 changed files with 61 additions and 0 deletions

View file

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