42 lines
1.1 KiB
Diff
42 lines
1.1 KiB
Diff
From c0759f25c4ebf2ed76ccd602458ea24817a4f0a3 Mon Sep 17 00:00:00 2001
|
|
From: liuxinhao <liuxinhao@kylinsec.com.cn>
|
|
Date: Tue, 9 Jan 2024 11:45:00 +0800
|
|
Subject: [PATCH 10/10] fix(scale): Fix the issue of manual scaling not taking
|
|
effect
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
- 将设置缩放率代码提前至Application构造前
|
|
|
|
Closes #25011
|
|
---
|
|
src/lightdm-greeter/main.cpp | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/src/lightdm-greeter/main.cpp b/src/lightdm-greeter/main.cpp
|
|
index 49911d6..61255ec 100644
|
|
--- a/src/lightdm-greeter/main.cpp
|
|
+++ b/src/lightdm-greeter/main.cpp
|
|
@@ -119,13 +119,13 @@ int main(int argc, char* argv[])
|
|
qWarning() << "init kiran-log failed";
|
|
}
|
|
|
|
- QApplication app(argc, argv);
|
|
- QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
|
-
|
|
Prefs::globalInit();
|
|
auto prefs = Prefs::getInstance();
|
|
-
|
|
adjustScaleFactor(prefs);
|
|
+
|
|
+ QApplication app(argc, argv);
|
|
+ QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
|
+
|
|
setCursor(prefs);
|
|
loadTranslator();
|
|
loadStyleSheet();
|
|
--
|
|
2.27.0
|
|
|