Disable deprecated Qt functions

Also Qt6 by default set these attributes to our preferred value.
This commit is contained in:
Chocobo1 2021-10-13 00:35:55 +08:00
parent 08b2cde8e8
commit ca28fc27dc
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
2 changed files with 3 additions and 1 deletions

View file

@ -141,7 +141,9 @@ Application::Application(int &argc, char **argv)
setOrganizationDomain("qbittorrent.org");
#if !defined(DISABLE_GUI)
setDesktopFileName("org.qbittorrent.qBittorrent");
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
setAttribute(Qt::AA_UseHighDpiPixmaps, true); // opt-in to the high DPI pixmap support
#endif
setQuitOnLastWindowClosed(false);
QPixmapCache::setCacheLimit(PIXMAP_CACHE_SIZE);
#endif