Some VCS: Use the simpler setLayouter overload for settings

Change-Id: Idb4b271f5723d1a4ea1809aa41b81fbeb900eb83
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2023-05-30 16:53:10 +02:00
parent a35fd42364
commit 7274e135f9
3 changed files with 9 additions and 9 deletions

View File

@@ -66,10 +66,10 @@ BazaarSettings::BazaarSettings()
timeout.setLabelText(Tr::tr("Timeout:")); timeout.setLabelText(Tr::tr("Timeout:"));
timeout.setSuffix(Tr::tr("s")); timeout.setSuffix(Tr::tr("s"));
setLayouter([this](QWidget *widget) { setLayouter([this] {
using namespace Layouting; using namespace Layouting;
Column { return Column {
Group { Group {
title(Tr::tr("Configuration")), title(Tr::tr("Configuration")),
Row { binaryPath } Row { binaryPath }
@@ -88,7 +88,7 @@ BazaarSettings::BazaarSettings()
Row { logCount, timeout, st } Row { logCount, timeout, st }
}, },
st st
}.attachTo(widget); };
}); });
} }

View File

@@ -88,9 +88,9 @@ FossilSettings::FossilSettings()
logCount.setToolTip(Tr::tr("The number of recent commit log entries to show. " logCount.setToolTip(Tr::tr("The number of recent commit log entries to show. "
"Choose 0 to see all entries.")); "Choose 0 to see all entries."));
setLayouter([this](QWidget *widget) { setLayouter([this] {
using namespace Layouting; using namespace Layouting;
Column { return Column {
Group { Group {
title(Tr::tr("Configuration")), title(Tr::tr("Configuration")),
Row { binaryPath } Row { binaryPath }
@@ -117,7 +117,7 @@ FossilSettings::FossilSettings()
}, },
}, },
st st
}.attachTo(widget); };
}); });
} }

View File

@@ -48,10 +48,10 @@ MercurialSettings::MercurialSettings()
diffIgnoreBlankLines.setSettingsKey("diffIgnoreBlankLines"); diffIgnoreBlankLines.setSettingsKey("diffIgnoreBlankLines");
setLayouter([this](QWidget *widget) { setLayouter([this] {
using namespace Layouting; using namespace Layouting;
Column { return Column {
Group { Group {
title(Tr::tr("Configuration")), title(Tr::tr("Configuration")),
Row { binaryPath } Row { binaryPath }
@@ -71,7 +71,7 @@ MercurialSettings::MercurialSettings()
}, },
st st
}.attachTo(widget); };
}); });
} }