29 lines
859 B
Diff
29 lines
859 B
Diff
From 746dea55c9b8465944430ecb8544d2c68b4fd3ab Mon Sep 17 00:00:00 2001
|
|
From: tanyulong2021 <tanyulong@kylinos.cn>
|
|
Date: Thu, 4 Aug 2022 11:51:36 +0800
|
|
Subject: [PATCH] add and use attribute of UseHighDpiPixmaps
|
|
|
|
---
|
|
src/ukui-screensaver-dialog.cpp | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/src/ukui-screensaver-dialog.cpp b/src/ukui-screensaver-dialog.cpp
|
|
index cd69513..ad49e1b 100644
|
|
--- a/src/ukui-screensaver-dialog.cpp
|
|
+++ b/src/ukui-screensaver-dialog.cpp
|
|
@@ -116,6 +116,11 @@ int main(int argc, char *argv[])
|
|
{
|
|
checkIsRunning();
|
|
checkIslivecd();
|
|
+ #if(QT_VERSION >= QT_VERSION_CHECK(5,6,0))
|
|
+ QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
+ QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
|
+ #endif
|
|
+
|
|
QApplication a(argc, argv);
|
|
QApplication::setSetuidAllowed(true);
|
|
|
|
--
|
|
2.33.0
|
|
|