chore: remove qt version checks from code

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2025-04-10 12:03:50 +03:00
parent 59bd6a915b
commit 442aae88ce
No known key found for this signature in database
GPG key ID: 55EF5DA53DB36318
27 changed files with 2 additions and 182 deletions

View file

@ -137,11 +137,7 @@ QString formatName(const QDir& iconsDir, const QFileInfo& iconFile)
/// Split into a separate function because the preprocessing impedes readability
QSet<QString> toStringSet(const QList<QString>& list)
{
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
QSet<QString> set(list.begin(), list.end());
#else
QSet<QString> set = list.toSet();
#endif
return set;
}
@ -477,4 +473,4 @@ QString IconList::iconDirectory(const QString& key) const
}
}
return getDirectory();
}
}