mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
chore: remove qt version checks from code
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
59bd6a915b
commit
442aae88ce
27 changed files with 2 additions and 182 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue