chore: replace foreach macro
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
198fbd19cf
commit
bbfaaef31d
4 changed files with 8 additions and 8 deletions
|
@ -178,7 +178,7 @@ QStringList CheckComboBox::checkedItems() const
|
|||
|
||||
void CheckComboBox::setCheckedItems(const QStringList& items)
|
||||
{
|
||||
foreach (auto text, items) {
|
||||
for (auto text : items) {
|
||||
auto index = findText(text);
|
||||
setItemCheckState(index, index != -1 ? Qt::Checked : Qt::Unchecked);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue