mwolff accepted this revision. mwolff added a comment. This revision is now accepted and ready to land.
you could reduce the code duplication by adding a loop. Note that you can even write something like this: for (auto type : {type1, type2, type3}) { .... } INLINE COMMENTS > kfileplacesmodeltest.cpp:1242 > + m_places->setGroupHidden(KFilePlacesModel::SearchForType, true); > + for (auto index : > m_places->groupIndexes(KFilePlacesModel::SearchForType)) { > + QCOMPARE(index.data(KFilePlacesModel::GroupHiddenRole).toBool(), > true); nest this in an outer loop over the group types to share most of the code REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D9252 To: renatoo, mwolff Cc: #frameworks