Skip to content

Commit 10e076a

Browse files
sync: from linuxdeepin/dde-session-shell
Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: linuxdeepin/dde-session-shell#63
1 parent 403699f commit 10e076a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.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)