diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-06-21 13:50:48 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-06-21 13:50:48 +0200 |
commit | d8d99d041a063a1719fc1d43ecd4a6365e0657ca (patch) | |
tree | 2e6fa4120042da585fbb6c0e3dfcd9c65bbb6cfe /src/qt/bitcoin.cpp | |
parent | 8927bb8f063e88546fd9cf2ce595902d2ea63bb6 (diff) | |
download | bitcoin-d8d99d041a063a1719fc1d43ecd4a6365e0657ca.tar.xz |
qt6: Do not use deprecated high DPI attributes in Qt 6
In Qt 6, high DPI pixmaps and scaling are always enabled.
https://doc.qt.io/qt-6/highdpi.html
Diffstat (limited to 'src/qt/bitcoin.cpp')
-rw-r--r-- | src/qt/bitcoin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 4fea1c1f12..27d3a1b9e2 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -530,9 +530,11 @@ int GuiMain(int argc, char* argv[]) Q_INIT_RESOURCE(bitcoin); Q_INIT_RESOURCE(bitcoin_locale); +#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) // Generate high-dpi pixmaps QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif #if defined(QT_QPA_PLATFORM_ANDROID) QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar); |