chore: replace foreach macro
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user