mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
Disable deprecated Qt functions
Also Qt6 by default set these attributes to our preferred value.
This commit is contained in:
parent
08b2cde8e8
commit
ca28fc27dc
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue