diff --git a/reader/widgets/EncryptionPage.cpp b/reader/widgets/EncryptionPage.cpp index 08be3f63..198e058f 100644 --- a/reader/widgets/EncryptionPage.cpp +++ b/reader/widgets/EncryptionPage.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2019 - 2026 Uniontech Software Technology Co.,Ltd. -// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2023-2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -14,6 +14,7 @@ #include #include +#include EncryptionPage::EncryptionPage(QWidget *parent) : DWidget(parent) @@ -48,7 +49,7 @@ void EncryptionPage::InitUI() edit->setObjectName("passwdEdit"); edit->setPlaceholderText(tr("Password")); - m_nextbutton = new DPushButton(this); + m_nextbutton = new DSuggestButton(this); m_nextbutton->setObjectName("ensureBtn"); m_nextbutton->setAccessibleName("Nextbutton"); m_nextbutton->setFixedSize(360, 36); @@ -73,6 +74,7 @@ void EncryptionPage::InitUI() mainlayout->addStretch(); setAutoFillBackground(true); + setMinimumHeight(305); onUpdateTheme(); m_password->lineEdit()->setAttribute(Qt::WA_InputMethodEnabled, false); @@ -84,7 +86,7 @@ void EncryptionPage::InitConnection() { qCDebug(appLog) << "Setting up encryption page signal connections"; connect(m_password, &DPasswordEdit::textChanged, this, &EncryptionPage::onPasswordChanged); - connect(m_nextbutton, &DPushButton::clicked, this, &EncryptionPage::nextbuttonClicked); + connect(m_nextbutton, &DSuggestButton::clicked, this, &EncryptionPage::nextbuttonClicked); connect(dApp, SIGNAL(sigSetPasswdFocus()), this, SLOT(onSetPasswdFocus())); } diff --git a/reader/widgets/EncryptionPage.h b/reader/widgets/EncryptionPage.h index ad0bfe9c..314e9f74 100644 --- a/reader/widgets/EncryptionPage.h +++ b/reader/widgets/EncryptionPage.h @@ -1,5 +1,5 @@ // Copyright (C) 2019 ~ 2020 Uniontech Software Technology Co.,Ltd. -// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2023-2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -8,6 +8,7 @@ #include #include +#include #include #include @@ -77,7 +78,7 @@ private slots: void onUpdateTheme(); private: - DPushButton *m_nextbutton = nullptr; + DSuggestButton *m_nextbutton = nullptr; DPushButton *m_echoBtn = nullptr; DPasswordEdit *m_password = nullptr; };