Fix Qt5.14 compilation
This commit is contained in:
parent
680b1428a1
commit
6c0463d114
1 changed files with 5 additions and 1 deletions
|
@ -373,7 +373,11 @@ QStringList FolderModel::filterMimeTypes() const
|
|||
|
||||
void FolderModel::setFilterMimeTypes(const QStringList &mimeList)
|
||||
{
|
||||
QSet<QString> set(mimeList.begin(), mimeList.end());
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
|
||||
const QSet<QString> &set = QSet<QString>::fromList(mimeList);
|
||||
#else
|
||||
const QSet<QString> set(mimeList.constBegin(), mimeList.constEnd());
|
||||
#endif
|
||||
|
||||
if (m_mimeSet != set) {
|
||||
m_mimeSet = set;
|
||||
|
|
Loading…
Reference in a new issue