forked from qt-creator/qt-creator
ProjectExplorer: Limit the usage of qMakePair
Make the code less verbose. Change-Id: If9fe08a6a7538d34c80ca97a2aec21a2bd6e5d22 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -306,9 +306,8 @@ private:
|
||||
parserCheckBoxes.clear();
|
||||
for (const CustomParserSettings &s : ProjectExplorerPlugin::customParsers()) {
|
||||
const auto checkBox = new QCheckBox(s.displayName, this);
|
||||
connect(checkBox, &QCheckBox::stateChanged,
|
||||
this, &SelectionWidget::selectionChanged);
|
||||
parserCheckBoxes << qMakePair(checkBox, s.id);
|
||||
connect(checkBox, &QCheckBox::stateChanged, this, &SelectionWidget::selectionChanged);
|
||||
parserCheckBoxes.push_back({checkBox, s.id});
|
||||
layout->addWidget(checkBox);
|
||||
}
|
||||
setSelectedParsers(parsers);
|
||||
|
||||
Reference in New Issue
Block a user