Core: Make PagedSettings autoapply by default in the base

Instead of relying (and forgetting...) it in all derived clases.

Change-Id: I5d1dea0ace420d464c39c192278ae6e5db01de90
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2023-05-10 17:04:22 +02:00
parent 0449a3fdab
commit 5614696002
9 changed files with 8 additions and 26 deletions

View File

@@ -20,7 +20,7 @@ BoostTestSettings::BoostTestSettings(Id settingsId)
setId(settingsId);
setCategory(Constants::AUTOTEST_SETTINGS_CATEGORY);
setDisplayName(Tr::tr(BoostTest::Constants::FRAMEWORK_SETTINGS_CATEGORY));
setSettings(this);
setSettingsGroups("Autotest", "BoostTest");
setLayouter([this](QWidget *widget) {
Row { Form {
@@ -33,9 +33,6 @@ BoostTestSettings::BoostTestSettings(Id settingsId)
}, st}.attachTo(widget);
});
setSettingsGroups("Autotest", "BoostTest");
setAutoApply(false);
registerAspect(&logLevel);
logLevel.setSettingsKey("LogLevel");
logLevel.setDisplayStyle(SelectionAspect::DisplayStyle::ComboBox);