Add fractional scaling parameters
This commit is contained in:
parent
cf59b97b7b
commit
c857cef8ed
37
0006-Add-fractional-scaling-parameters.patch
Normal file
37
0006-Add-fractional-scaling-parameters.patch
Normal file
@ -0,0 +1,37 @@
|
||||
From 5e78ddb24d5b562d724282243617d115b5800fe6 Mon Sep 17 00:00:00 2001
|
||||
From: tanyulong <tanyulong@kylinos.cn>
|
||||
Date: Sat, 30 Oct 2021 14:57:31 +0800
|
||||
Subject: [PATCH] Add fractional scaling parameters
|
||||
|
||||
---
|
||||
src/ukui-screensaver-dialog.cpp | 12 +++++++++---
|
||||
1 file changed, 9 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/ukui-screensaver-dialog.cpp b/src/ukui-screensaver-dialog.cpp
|
||||
index 237b377..c6b2d3a 100755
|
||||
--- a/src/ukui-screensaver-dialog.cpp
|
||||
+++ b/src/ukui-screensaver-dialog.cpp
|
||||
@@ -124,11 +124,17 @@ int main(int argc, char *argv[])
|
||||
checkIsRunning();
|
||||
checkIslivecd();
|
||||
|
||||
-#if(QT_VERSION>=QT_VERSION_CHECK(5,6,0))
|
||||
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
- QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
|
||||
+ QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
+ QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
#endif
|
||||
|
||||
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
|
||||
+ QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
+
|
||||
qunsetenv("QT_IM_MODULE");
|
||||
// signal(SIGTERM,handler);
|
||||
QApplication a(argc, argv);
|
||||
--
|
||||
2.30.0
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: ukui-screensaver
|
||||
Version: 3.0.1
|
||||
Release: 6
|
||||
Release: 7
|
||||
Summary: parallels toolbox for UKUI
|
||||
License: GPL-3+ GPL-2+
|
||||
URL: http://www.ukui.org
|
||||
@ -31,6 +31,7 @@ patch1: 0002-fix-ukui-screensaver-dialog-lock.patch
|
||||
patch2: 0003-Fix-a-return-type-error.patch
|
||||
patch3: 0004-remove-in-debian-copyright-file.patch
|
||||
patch4: 0005-Add-sentence-author-info.patch
|
||||
patch5: 0006-Add-fractional-scaling-parameters.patch
|
||||
|
||||
%description
|
||||
The ukui-sidebar is mainly used in the desktop operating system.
|
||||
@ -45,6 +46,7 @@ patch4: 0005-Add-sentence-author-info.patch
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
|
||||
%build
|
||||
cmake .
|
||||
@ -73,6 +75,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
#%%{_datadir}/ukui-screensaver/screensaver-en.ini
|
||||
|
||||
%changelog
|
||||
* Sat Oct 30 2021 tanyulong <tanyulong@kylinos.cn> - 3.0.1-7
|
||||
- Add fractional scaling parameters
|
||||
|
||||
* Sat Oct 30 2021 tanyulong <tanyulong@kylinos.cn> - 3.0.1-6
|
||||
- Add sentence author info
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user