Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 2cfc288e authored by Laurent Montel's avatar Laurent Montel 😁

Use kpasswordlineedit

parent e15612bf
......@@ -19,7 +19,7 @@
#include "setupwizard.h"
#include <KDAV/DavCollectionsMultiFetchJob>
#include <KPasswordLineEdit>
#include <qicon.h>
#include <KLocalizedString>
#include <klineedit.h>
......@@ -228,10 +228,9 @@ CredentialsPage::CredentialsPage(QWidget *parent)
layout->addRow(i18n("User"), mUserName);
registerField(QStringLiteral("credentialsUserName*"), mUserName);
mPassword = new KLineEdit;
mPassword->setPasswordMode(true);
mPassword = new KPasswordLineEdit;
layout->addRow(i18n("Password"), mPassword);
registerField(QStringLiteral("credentialsPassword*"), mPassword);
registerField(QStringLiteral("credentialsPassword*"), mPassword, "password", "passwordChanged");
}
int CredentialsPage::nextId() const
......
......@@ -35,6 +35,7 @@ class QComboBox;
class QFormLayout;
class QLabel;
class QRadioButton;
class KPasswordLineEdit;
class SetupWizard : public QWizard
{
......@@ -89,7 +90,7 @@ public:
private:
KLineEdit *mUserName;
KLineEdit *mPassword;
KPasswordLineEdit *mPassword;
};
class ServerTypePage : public QWizardPage
......
Markdown is supported
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