diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-05-02 21:34:55 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-07-10 12:19:15 +0200 |
commit | c36342371819a4983b5ac2b928acc6a78b857ed8 (patch) | |
tree | 925d5ef6756a205feddc40864c0717e0c6472d44 /launcher/main.cpp | |
parent | e58158c3cd629717a9742fe08da9b09ed39bc198 (diff) | |
download | PrismLauncher-c36342371819a4983b5ac2b928acc6a78b857ed8.tar.gz PrismLauncher-c36342371819a4983b5ac2b928acc6a78b857ed8.tar.bz2 PrismLauncher-c36342371819a4983b5ac2b928acc6a78b857ed8.zip |
refactor: fix deprecation up to Qt 6
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/main.cpp')
-rw-r--r-- | launcher/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/main.cpp b/launcher/main.cpp index 3d25b4ff..bb09ea6c 100644 --- a/launcher/main.cpp +++ b/launcher/main.cpp @@ -24,8 +24,10 @@ int main(int argc, char *argv[]) return 42; #endif +#if QT_VERSION <= QT_VERSION_CHECK(6, 0, 0) QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); +#endif // initialize Qt Application app(argc, argv); |