Commit 7e76ac4c authored by Laurent Montel's avatar Laurent Montel 😁

Use new PimCommon::LineEditPassword

parent ac7eb7a4
......@@ -45,7 +45,7 @@ set(KDEPIM_LIB_VERSION "${KDEPIM_VERSION_NUMBER}")
set(KDEPIM_LIB_SOVERSION "5")
set(LIBKSIEVE_LIB_VERSION_LIB "5.5.41")
set(PIMCOMMON_LIB_VERSION_LIB "5.5.40")
set(PIMCOMMON_LIB_VERSION_LIB "5.5.61")
set(KIMAP_LIB_VERSION "5.5.40")
......
......@@ -161,12 +161,12 @@ void ServerSieveSettings::setUserName(const QString &name)
QString ServerSieveSettings::password() const
{
return ui->password->text();
return ui->password->password();
}
void ServerSieveSettings::setPassword(const QString &pass)
{
ui->password->setText(pass);
ui->password->setPassword(pass);
}
QString ServerSieveSettings::imapServerName() const
......@@ -201,12 +201,12 @@ void ServerSieveSettings::setImapUserName(const QString &name)
QString ServerSieveSettings::imapPassword() const
{
return ui->imapPassword->text();
return ui->imapPassword->password();
}
void ServerSieveSettings::setImapPassword(const QString &pass)
{
ui->imapPassword->setText(pass);
ui->imapPassword->setPassword(pass);
}
void ServerSieveSettings::setAuthenticationType(KSieveUi::SieveImapAccountSettings::AuthenticationMode type)
......
......@@ -80,10 +80,7 @@
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="password">
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
<widget class="PimCommon::LineEditPassword" name="password">
</widget>
</item>
<item row="3" column="0" colspan="2">
......@@ -358,10 +355,7 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="imapPassword">
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
<widget class="PimCommon::LineEditPassword" name="imapPassword">
</widget>
</item>
</layout>
......@@ -412,6 +406,13 @@ p, li { white-space: pre-wrap; }
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>PimCommon::LineEditPassword</class>
<extends>QLineEdit</extends>
<header>pimcommon/lineeditpassword.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>serverName</tabstop>
<tabstop>userName</tabstop>
......
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