CppCheck: Move to simpler setLayouter calls

Change-Id: Id0e9f1adfe730f6067ade9472db597e3a12fc2e3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-05-31 08:47:33 +02:00
parent 43d5944873
commit ff2ed7d94b
3 changed files with 7 additions and 7 deletions

View File

@@ -108,11 +108,11 @@ CppcheckOptions::CppcheckOptions()
readSettings();
}
std::function<void(QWidget *widget)> CppcheckOptions::layouter()
std::function<Layouting::LayoutItem()> CppcheckOptions::layouter()
{
return [this](QWidget *widget) {
return [this] {
using namespace Layouting;
Form {
return Form {
binary, br,
Tr::tr("Checks:"), Flow {
warning,
@@ -132,7 +132,7 @@ std::function<void(QWidget *widget)> CppcheckOptions::layouter()
addIncludePaths,
guessArguments
}
}.attachTo(widget);
};
};
}