mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Add fallback for qt < 5.15
This commit is contained in:
parent
f03ad848cb
commit
82eb5c0a8b
@ -566,7 +566,13 @@ void FolderModelProxy::setFilterData(QMap<unsigned long long, FolderItem *> *fil
|
||||
|
||||
rootItem = root;
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
|
||||
QMap<unsigned long long, FolderItem *>::iterator i;
|
||||
for (i = filteredItems->begin(); i != filteredItems->end(); ++i)
|
||||
this->filteredItems.insert(i.key(), i.value());
|
||||
#else
|
||||
this->filteredItems.insert(*filteredItems);
|
||||
#endif
|
||||
|
||||
endResetModel();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user