From c3cf7f713bd6fee8d71e91cb03683f67989d9478 Mon Sep 17 00:00:00 2001 From: tanyulong2021 Date: Mon, 1 Aug 2022 11:50:50 +0800 Subject: [PATCH] add and use attribute of UseHighDpiPixmaps --- ...d-use-attribute-of-UseHighDpiPixmaps.patch | 33 +++++++++++++++++++ ukui-biometric-auth.spec | 7 +++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 0002-add-and-use-attribute-of-UseHighDpiPixmaps.patch diff --git a/0002-add-and-use-attribute-of-UseHighDpiPixmaps.patch b/0002-add-and-use-attribute-of-UseHighDpiPixmaps.patch new file mode 100644 index 0000000..a9e4cd7 --- /dev/null +++ b/0002-add-and-use-attribute-of-UseHighDpiPixmaps.patch @@ -0,0 +1,33 @@ +From a408cee19e004f1c3e0fea33696fd9a862deb05c Mon Sep 17 00:00:00 2001 +From: tanyulong2021 +Date: Mon, 1 Aug 2022 11:46:01 +0800 +Subject: [PATCH] add and use attribute of UseHighDpiPixmaps + +--- + polkit-agent/src/PolkitAgent.cpp | 9 +++++++-- + 1 file changed, 7 insertions(+), 2 deletions(-) + +diff --git a/polkit-agent/src/PolkitAgent.cpp b/polkit-agent/src/PolkitAgent.cpp +index 6966c05..31a234d 100755 +--- a/polkit-agent/src/PolkitAgent.cpp ++++ b/polkit-agent/src/PolkitAgent.cpp +@@ -36,9 +36,14 @@ int main(int argc, char *argv[]) + logPrefix = "[ukui-polkit]:"; + qInstallMessageHandler(outputMessage); + +- qDebug() << "Polkit Agent Started"; ++ qDebug() << "Polkit Agent Started"; ++ #if(QT_VERSION >= QT_VERSION_CHECK(5,6,0)) ++ QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); ++ QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); ++ #endif ++ + +- QApplication agent(argc, argv); ++ QApplication agent(argc, argv); + + QString locale = QLocale::system().name(); + qDebug() << "Language: " < - 1.2.1-6 +- add and use attribute of UseHighDpiPixmaps + * Mon Aug 01 2022 tanyulong - 1.2.1-5 - add window icon