3 Star 0 Fork 6

src-openEuler/kiran-session-guard

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0010-fix-scale-Fix-the-issue-of-manual-scaling-not-taking.patch 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
liubuguiii 提交于 2024-01-18 11:52 . 同步更新,修复BUG
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/kiran-session-guard.git
git@gitee.com:src-openeuler/kiran-session-guard.git
src-openeuler
kiran-session-guard
kiran-session-guard
master

搜索帮助