forked from qt-creator/qt-creator
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:
@@ -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);
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user