mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 03:28:41 -07:00
Raise minimum supported Qt version to 5.12
This commit is contained in:
parent
6139d0d65a
commit
f022458383
20 changed files with 42 additions and 148 deletions
|
@ -78,11 +78,7 @@ QString Utils::Fs::toUniformPath(const QString &path)
|
|||
QString Utils::Fs::fileExtension(const QString &filename)
|
||||
{
|
||||
const QString name = filename.endsWith(QB_EXT)
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
|
||||
? filename.chopped(QB_EXT.length())
|
||||
#else
|
||||
? filename.left(filename.length() - QB_EXT.length())
|
||||
#endif
|
||||
: filename;
|
||||
return QMimeDatabase().suffixForFileName(name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue