Skip to content

Commit 8d6fdf4

Browse files
add-uosdeepin-bot[bot]
authored andcommitted
fix(auth): fix face ID text label alignment and update gitignore
Fix Face ID text label center alignment by using AlignCenter flag instead of AlignHCenter, and add obj-x86_64-linux-gnu to gitignore. 修复Face ID文本标签居中对齐问题,使用AlignCenter替代AlignHCenter, 并将obj-x86_64-linux-gnu添加到gitignore。 Log: 修复Face ID文本标签居中对齐问题 PMS: BUG-353941 Influence: 人脸识别认证界面的文本标签显示居中对齐更加正确。
1 parent d529449 commit 8d6fdf4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ build*/
1818
*.core
1919
*.autosave
2020
*.user*
21+
obj-x86_64-linux-gnu/*
2122

2223
# qm file is auto generate from .ts file
2324
*.qm

src/session-widgets/auth_face.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2021 - 2022 UnionTech Software Technology Co., Ltd.
1+
// SPDX-FileCopyrightText: 2021 - 2026 UnionTech Software Technology Co., Ltd.
22
//
33
// SPDX-License-Identifier: GPL-3.0-or-later
44

@@ -32,7 +32,8 @@ void AuthFace::initUI()
3232
/* 文案提示 */
3333
m_textLabel->setText(tr("Face ID"));
3434
m_textLabel->setWordWrap(true);
35-
mainLayout->addWidget(m_textLabel, 1, Qt::AlignHCenter);
35+
m_textLabel->setAlignment(Qt::AlignmentFlag::AlignCenter);
36+
mainLayout->addWidget(m_textLabel, 1);
3637
/* 认证状态 */
3738
m_authStateLabel = new DLabel(this);
3839
m_authStateLabel->installEventFilter(this);

0 commit comments

Comments
 (0)