Commit 6a349e45 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

we depend against 5.84

parent ba1c7d08
Pipeline #73770 failed with stage
in 2 minutes and 37 seconds
......@@ -88,9 +88,7 @@ void EwsSettings::requestPassword(bool ask)
} else {
qCDebug(EWSRES_LOG) << "requestPassword: Requesting interactively";
mPasswordDlg = new KPasswordDialog(nullptr);
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 84, 0)
mPasswordDlg->setRevealPasswordAvailable(KAuthorized::authorize(QStringLiteral("lineedit_reveal_password")));
#endif
mPasswordDlg->setModal(true);
mPasswordDlg->setPrompt(i18n("Please enter password for user '%1' and Exchange account '%2'.", username(), email()));
if (mPasswordDlg->exec() == QDialog::Accepted) {
......
......@@ -150,9 +150,7 @@ QString SettingsPasswordRequester::requestManualAuth(bool *userRejected)
dlg->setModal(true);
dlg->setPrompt(i18n("Please enter password for user '%1' on IMAP server '%2'.", m_resource->settings()->userName(), m_resource->settings()->imapServer()));
dlg->setPassword(m_resource->settings()->password());
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 84, 0)
dlg->setRevealPasswordAvailable(KAuthorized::authorize(QStringLiteral("lineedit_reveal_password")));
#endif
if (dlg->exec()) {
if (userRejected) {
*userRejected = false;
......
......@@ -146,9 +146,7 @@ void POP3Resource::walletOpenedForLoading(QKeychain::Job *baseJob)
void POP3Resource::showPasswordDialog(const QString &queryText)
{
QPointer<KPasswordDialog> dlg = new KPasswordDialog(nullptr, KPasswordDialog::ShowUsernameLine);
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 84, 0)
dlg->setRevealPasswordAvailable(KAuthorized::authorize(QStringLiteral("lineedit_reveal_password")));
#endif
dlg->setModal(true);
dlg->setUsername(mSettings.login());
dlg->setPassword(mPassword);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment