The full user name is displayed through tooltip
This commit is contained in:
parent
566286c5b9
commit
e474be1a22
@ -0,0 +1,25 @@
|
|||||||
|
From d3f13ce8c7c53932112939293e4020cbda268a24 Mon Sep 17 00:00:00 2001
|
||||||
|
From: huayadong <huayadong@kylinos.cn>
|
||||||
|
Date: Thu, 9 Dec 2021 16:57:34 +0800
|
||||||
|
Subject: [PATCH] The full user name is displayed through tooltip
|
||||||
|
|
||||||
|
---
|
||||||
|
ukui-greeter/greeter/userentry.cpp | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/ukui-greeter/greeter/userentry.cpp b/ukui-greeter/greeter/userentry.cpp
|
||||||
|
index b5905f1..7fea210 100755
|
||||||
|
--- a/ukui-greeter/greeter/userentry.cpp
|
||||||
|
+++ b/ukui-greeter/greeter/userentry.cpp
|
||||||
|
@@ -149,6 +149,8 @@ void UserEntry::setUserName(const QString &name)
|
||||||
|
m_name = name;
|
||||||
|
|
||||||
|
QString str = ElideText(m_nameLabel->font(),IMG_WIDTH,name);
|
||||||
|
+ if(name != str)
|
||||||
|
+ m_nameLabel->setToolTip(name);
|
||||||
|
m_nameLabel->setText(str);
|
||||||
|
m_nameLabel->setAlignment(Qt::AlignCenter);
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.30.0
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
Name: ukui-greeter
|
Name: ukui-greeter
|
||||||
Version: 3.0.1
|
Version: 3.0.1
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: Lightdm greeter for UKUI
|
Summary: Lightdm greeter for UKUI
|
||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
URL: http://www.ukui.org
|
URL: http://www.ukui.org
|
||||||
@ -25,6 +25,7 @@ patch1: 0002-fix-ukui-greeter-desktop-option-issue.patch
|
|||||||
patch2: 0001-Avoid-problem-of-writing-Chinese-garbled-characters.patch
|
patch2: 0001-Avoid-problem-of-writing-Chinese-garbled-characters.patch
|
||||||
patch3: 0003-add-set-dpi.patch
|
patch3: 0003-add-set-dpi.patch
|
||||||
patch4: 0004-Solve-the-problem-that-biometric-devices-cannot-read.patch
|
patch4: 0004-Solve-the-problem-that-biometric-devices-cannot-read.patch
|
||||||
|
patch5: ukui-greeter-the-full-user-name-is-displayed-through-tooltip.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A greeter for UKUI desktop environment written by Qt5.
|
A greeter for UKUI desktop environment written by Qt5.
|
||||||
@ -37,6 +38,8 @@ A greeter for UKUI desktop environment written by Qt5.
|
|||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
|
%patch5 -p1
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
qmake-qt5
|
qmake-qt5
|
||||||
@ -61,6 +64,9 @@ gzip -c ukui-greeter/man/ukui-greeter.8 > %{buildroot}/usr/share/man/man8/ukui-
|
|||||||
%{_datadir}/xgreeters/ukui-greeter.desktop
|
%{_datadir}/xgreeters/ukui-greeter.desktop
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Dec 09 2021 huayadong <huayadong@kylinos.cn> - 3.0.1-7
|
||||||
|
- add patch5:ukui-greeter-the-full-user-name-is-displayed-through-tooltip.patch
|
||||||
|
|
||||||
* Fri Oct 29 2021 tanyulong <tanyulong@kylinos.cn> - 3.0.1-6
|
* Fri Oct 29 2021 tanyulong <tanyulong@kylinos.cn> - 3.0.1-6
|
||||||
- Solve the problem that biometric devices cannot read
|
- Solve the problem that biometric devices cannot read
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user