|
@ -39,7 +39,9 @@ void SettingsUiBuilder::loadSection(const SettingsElements::Section §ion) |
|
|
{ |
|
|
{ |
|
|
auto inputFactory = QuickPresenterPrivate::currentPresenter()->inputViewFactory(); |
|
|
auto inputFactory = QuickPresenterPrivate::currentPresenter()->inputViewFactory(); |
|
|
_entryModel->setup(section, _viewModel, inputFactory); |
|
|
_entryModel->setup(section, _viewModel, inputFactory); |
|
|
|
|
|
#ifndef QT_NO_DEBUG |
|
|
qmlDebug(this) << "Loaded section " << section.title; |
|
|
qmlDebug(this) << "Loaded section " << section.title; |
|
|
|
|
|
#endif |
|
|
emit presentSection(_entryFilterModel); |
|
|
emit presentSection(_entryFilterModel); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -48,7 +50,9 @@ void SettingsUiBuilder::showDialog(const QString &key, const QString &title, con |
|
|
if(type == QStringLiteral("action")) |
|
|
if(type == QStringLiteral("action")) |
|
|
_viewModel->callAction(key, properties.value(QStringLiteral("args")).toMap()); |
|
|
_viewModel->callAction(key, properties.value(QStringLiteral("args")).toMap()); |
|
|
else { |
|
|
else { |
|
|
|
|
|
#ifndef QT_NO_DEBUG |
|
|
qmlDebug(this) << "Creating input dialog for settings entry " << key; |
|
|
qmlDebug(this) << "Creating input dialog for settings entry " << key; |
|
|
|
|
|
#endif |
|
|
getInput(title + tr(":"), QString(), qUtf8Printable(type), this, [this, key](const QVariant &value) { |
|
|
getInput(title + tr(":"), QString(), qUtf8Printable(type), this, [this, key](const QVariant &value) { |
|
|
if(value.isValid()) |
|
|
if(value.isValid()) |
|
|
_viewModel->saveValue(key, value); |
|
|
_viewModel->saveValue(key, value); |
|
|