forked from qt-creator/qt-creator
Cmake: Make line edit in formatter settings editable again
... and improve layout a bit Change-Id: Ib1f7626259ca59190804faab5e2f453e8520de58 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -60,10 +60,12 @@ public:
|
||||
autoFormatOnlyCurrentProject.setSettingsKey("autoFormatOnlyCurrentProject");
|
||||
autoFormatOnlyCurrentProject.setDefaultValue(true);
|
||||
autoFormatOnlyCurrentProject.setLabelText(Tr::tr("Restrict to files contained in the current project"));
|
||||
autoFormatOnlyCurrentProject.setLabelPlacement(BoolAspect::LabelPlacement::AtCheckBox);
|
||||
|
||||
autoFormatMime.setSettingsKey("autoFormatMime");
|
||||
autoFormatMime.setDefaultValue("text/x-cmake");
|
||||
autoFormatMime.setLabelText(Tr::tr("Restrict to MIME types:"));
|
||||
autoFormatMime.setDisplayStyle(StringAspect::LineEditDisplay);
|
||||
|
||||
setLayouter([this] {
|
||||
using namespace Layouting;
|
||||
@@ -73,9 +75,12 @@ public:
|
||||
Group {
|
||||
title(Tr::tr("Automatic Formatting on File Save")),
|
||||
autoFormatOnSave.groupChecker(),
|
||||
Form {
|
||||
autoFormatMime, br,
|
||||
Span(2, autoFormatOnlyCurrentProject)
|
||||
// Conceptually, that's a Form, but this would look odd:
|
||||
// xxxxxx [____]
|
||||
// [x] xxxxxxxxxxxxxx
|
||||
Column {
|
||||
Row { autoFormatMime },
|
||||
autoFormatOnlyCurrentProject
|
||||
}
|
||||
},
|
||||
st
|
||||
|
Reference in New Issue
Block a user