forked from qt-creator/qt-creator
Use simpler IOptionPage::setLayouter overload in a few more places
Change-Id: Id3745dab4363279219062462492b3a3e789776be Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -20,8 +20,8 @@ CTestSettings::CTestSettings(Id settingsId)
|
|||||||
setCategory(Constants::AUTOTEST_SETTINGS_CATEGORY);
|
setCategory(Constants::AUTOTEST_SETTINGS_CATEGORY);
|
||||||
setDisplayName(Tr::tr("CTest"));
|
setDisplayName(Tr::tr("CTest"));
|
||||||
|
|
||||||
setLayouter([this](QWidget *w) {
|
setLayouter([this] {
|
||||||
Row { Form {
|
return Row { Form {
|
||||||
outputOnFail, br,
|
outputOnFail, br,
|
||||||
scheduleRandom, br,
|
scheduleRandom, br,
|
||||||
stopOnFailure, br,
|
stopOnFailure, br,
|
||||||
@@ -39,7 +39,7 @@ CTestSettings::CTestSettings(Id settingsId)
|
|||||||
Row { testLoad, threshold}
|
Row { testLoad, threshold}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, st }.attachTo(w);
|
}, st };
|
||||||
});
|
});
|
||||||
|
|
||||||
outputOnFail.setSettingsKey("OutputOnFail");
|
outputOnFail.setSettingsKey("OutputOnFail");
|
||||||
|
|||||||
@@ -65,9 +65,9 @@ public:
|
|||||||
autoFormatMime.setDefaultValue("text/x-cmake");
|
autoFormatMime.setDefaultValue("text/x-cmake");
|
||||||
autoFormatMime.setLabelText(Tr::tr("Restrict to MIME types:"));
|
autoFormatMime.setLabelText(Tr::tr("Restrict to MIME types:"));
|
||||||
|
|
||||||
setLayouter([this](QWidget *widget) {
|
setLayouter([this] {
|
||||||
using namespace Layouting;
|
using namespace Layouting;
|
||||||
Column {
|
return Column {
|
||||||
Row { Tr::tr("CMakeFormat command:"), command },
|
Row { Tr::tr("CMakeFormat command:"), command },
|
||||||
Space(10),
|
Space(10),
|
||||||
Group {
|
Group {
|
||||||
@@ -79,7 +79,7 @@ public:
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
st
|
st
|
||||||
}.attachTo(widget);
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
ActionContainer *menu = ActionManager::createMenu(Constants::CMAKEFORMATTER_MENU_ID);
|
ActionContainer *menu = ActionManager::createMenu(Constants::CMAKEFORMATTER_MENU_ID);
|
||||||
|
|||||||
@@ -33,15 +33,15 @@ NimSettings::NimSettings()
|
|||||||
setDisplayCategory(Tr::tr("Nim"));
|
setDisplayCategory(Tr::tr("Nim"));
|
||||||
setCategoryIconPath(":/nim/images/settingscategory_nim.png");
|
setCategoryIconPath(":/nim/images/settingscategory_nim.png");
|
||||||
|
|
||||||
setLayouter([this](QWidget *widget) {
|
setLayouter([this] {
|
||||||
using namespace Layouting;
|
using namespace Layouting;
|
||||||
Column {
|
return Column {
|
||||||
Group {
|
Group {
|
||||||
title("Nimsuggest"),
|
title("Nimsuggest"),
|
||||||
Column { nimSuggestPath }
|
Column { nimSuggestPath }
|
||||||
},
|
},
|
||||||
st
|
st
|
||||||
}.attachTo(widget);
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
// code style factory
|
// code style factory
|
||||||
|
|||||||
@@ -29,10 +29,10 @@ BuildPropertiesSettings::BuildPropertiesSettings()
|
|||||||
setCategory(ProjectExplorer::Constants::BUILD_AND_RUN_SETTINGS_CATEGORY);
|
setCategory(ProjectExplorer::Constants::BUILD_AND_RUN_SETTINGS_CATEGORY);
|
||||||
setSettings(this);
|
setSettings(this);
|
||||||
|
|
||||||
setLayouter([this](QWidget *widget) {
|
setLayouter([this] {
|
||||||
using namespace Layouting;
|
using namespace Layouting;
|
||||||
|
|
||||||
Column {
|
return Column {
|
||||||
Form {
|
Form {
|
||||||
buildDirectoryTemplate, br,
|
buildDirectoryTemplate, br,
|
||||||
separateDebugInfo, br,
|
separateDebugInfo, br,
|
||||||
@@ -40,7 +40,7 @@ BuildPropertiesSettings::BuildPropertiesSettings()
|
|||||||
qtQuickCompiler
|
qtQuickCompiler
|
||||||
},
|
},
|
||||||
st
|
st
|
||||||
}.attachTo(widget);
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
registerAspect(&buildDirectoryTemplate);
|
registerAspect(&buildDirectoryTemplate);
|
||||||
|
|||||||
@@ -51,14 +51,14 @@ QmakeSettings::QmakeSettings()
|
|||||||
ignoreSystemFunction.setFromSettingsTransformation(invertBoolVariant);
|
ignoreSystemFunction.setFromSettingsTransformation(invertBoolVariant);
|
||||||
ignoreSystemFunction.setToSettingsTransformation(invertBoolVariant);
|
ignoreSystemFunction.setToSettingsTransformation(invertBoolVariant);
|
||||||
|
|
||||||
setLayouter([this](QWidget *widget) {
|
setLayouter([this] {
|
||||||
using namespace Layouting;
|
using namespace Layouting;
|
||||||
Column {
|
return Column {
|
||||||
warnAgainstUnalignedBuildDir,
|
warnAgainstUnalignedBuildDir,
|
||||||
alwaysRunQmake,
|
alwaysRunQmake,
|
||||||
ignoreSystemFunction,
|
ignoreSystemFunction,
|
||||||
st
|
st
|
||||||
}.attachTo(widget);
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
readSettings();
|
readSettings();
|
||||||
|
|||||||
Reference in New Issue
Block a user