forked from qt-creator/qt-creator
CppCheck: Move to simpler setLayouter calls
Change-Id: Id0e9f1adfe730f6067ade9472db597e3a12fc2e3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user