mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
Let OS handle DPI scaling for now. Should let Qt do the work when it's more mature.
Opt-in to the high DPI pixmap support Closes #2963.
This commit is contained in:
parent
f410b29c99
commit
aa246f0ca8
3
dist/windows/qt.conf
vendored
3
dist/windows/qt.conf
vendored
@ -1,2 +1,5 @@
|
|||||||
[Paths]
|
[Paths]
|
||||||
Translations = translations
|
Translations = translations
|
||||||
|
|
||||||
|
[Platforms]
|
||||||
|
WindowsArguments = dpiawareness=1
|
||||||
|
@ -92,6 +92,9 @@ Application::Application(const QString &id, int &argc, char **argv)
|
|||||||
setApplicationName("qBittorrent");
|
setApplicationName("qBittorrent");
|
||||||
initializeTranslation();
|
initializeTranslation();
|
||||||
#ifndef DISABLE_GUI
|
#ifndef DISABLE_GUI
|
||||||
|
#ifdef QBT_USES_QT5
|
||||||
|
setAttribute(Qt::AA_UseHighDpiPixmaps, true); // opt-in to the high DPI pixmap support
|
||||||
|
#endif // QBT_USES_QT5
|
||||||
setQuitOnLastWindowClosed(false);
|
setQuitOnLastWindowClosed(false);
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
connect(this, SIGNAL(commitDataRequest(QSessionManager &)), this, SLOT(shutdownCleanup(QSessionManager &)), Qt::DirectConnection);
|
connect(this, SIGNAL(commitDataRequest(QSessionManager &)), this, SLOT(shutdownCleanup(QSessionManager &)), Qt::DirectConnection);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user