Convert Q_FOREACH loops to C++11 for loops.
Q_FOREACH will de deprecated soon.
This commit is contained in:
committed by
Jonathan White
parent
ad834f0f58
commit
fff9e7ac46
@@ -338,7 +338,7 @@ QMimeData* GroupModel::mimeData(const QModelIndexList& indexes) const
|
||||
|
||||
QSet<Group*> seenGroups;
|
||||
|
||||
Q_FOREACH (const QModelIndex& index, indexes) {
|
||||
for (const QModelIndex& index : indexes) {
|
||||
if (!index.isValid()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -98,7 +98,8 @@ void GroupView::recInitExpanded(Group* group)
|
||||
expandGroup(group, group->isExpanded());
|
||||
m_updatingExpanded = false;
|
||||
|
||||
Q_FOREACH (Group* child, group->children()) {
|
||||
const QList<Group*> children = group->children();
|
||||
for (Group* child : children) {
|
||||
recInitExpanded(child);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user