mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Disable deprecated Qt functions
Also Qt6 by default set these attributes to our preferred value.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user