Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail Account Wizard
Commits
3fb85857
Commit
3fb85857
authored
May 27, 2019
by
Laurent Montel
😁
Browse files
Use KPasswordLineEdit here
parent
1cbf9361
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/personaldatapage.cpp
View file @
3fb85857
...
...
@@ -118,7 +118,7 @@ void PersonalDataPage::leavePageNext()
ui
.
imapAccount
->
setChecked
(
true
);
mSetupManager
->
setPersonalDataAvailable
(
true
);
mSetupManager
->
setName
(
ui
.
nameEdit
->
text
());
mSetupManager
->
setPassword
(
ui
.
passwordEdit
->
text
());
mSetupManager
->
setPassword
(
ui
.
passwordEdit
->
password
());
mSetupManager
->
setEmail
(
ui
.
emailEdit
->
text
().
trimmed
());
if
(
ui
.
checkOnlineGroupBox
->
isChecked
())
{
...
...
@@ -176,7 +176,7 @@ void PersonalDataPage::configureSmtpAccount()
t
->
setHost
(
s
.
hostname
);
t
->
setPort
(
s
.
port
);
t
->
setUsername
(
s
.
username
);
t
->
setPassword
(
ui
.
passwordEdit
->
text
());
t
->
setPassword
(
ui
.
passwordEdit
->
password
());
switch
(
s
.
authentication
)
{
case
Ispdb
::
Plain
:
t
->
setAuthenticationType
(
QStringLiteral
(
"plain"
));
...
...
@@ -227,7 +227,7 @@ void PersonalDataPage::configureImapAccount()
t
->
setOption
(
QStringLiteral
(
"ImapServer"
),
s
.
hostname
);
t
->
setOption
(
QStringLiteral
(
"ImapPort"
),
s
.
port
);
t
->
setOption
(
QStringLiteral
(
"UserName"
),
s
.
username
);
t
->
setOption
(
QStringLiteral
(
"Password"
),
ui
.
passwordEdit
->
text
());
t
->
setOption
(
QStringLiteral
(
"Password"
),
ui
.
passwordEdit
->
password
());
switch
(
s
.
authentication
)
{
case
Ispdb
::
Plain
:
t
->
setOption
(
QStringLiteral
(
"Authentication"
),
MailTransport
::
Transport
::
EnumAuthenticationType
::
CLEAR
);
...
...
@@ -279,7 +279,7 @@ void PersonalDataPage::configurePop3Account()
t
->
setOption
(
QStringLiteral
(
"Host"
),
s
.
hostname
);
t
->
setOption
(
QStringLiteral
(
"Port"
),
s
.
port
);
t
->
setOption
(
QStringLiteral
(
"Login"
),
s
.
username
);
t
->
setOption
(
QStringLiteral
(
"Password"
),
ui
.
passwordEdit
->
text
());
t
->
setOption
(
QStringLiteral
(
"Password"
),
ui
.
passwordEdit
->
password
());
switch
(
s
.
authentication
)
{
case
Ispdb
::
Plain
:
t
->
setOption
(
QStringLiteral
(
"AuthenticationMethod"
),
MailTransport
::
Transport
::
EnumAuthenticationType
::
PLAIN
);
...
...
src/ui/personaldatapage.ui
View file @
3fb85857
...
...
@@ -76,17 +76,8 @@
</widget>
</item>
<item
row=
"2"
column=
"1"
>
<widget
class=
"QLineEdit"
name=
"passwordEdit"
>
<property
name=
"minimumSize"
>
<size>
<width>
0
</width>
<height>
22
</height>
</size>
</property>
<property
name=
"echoMode"
>
<enum>
QLineEdit::Password
</enum>
</property>
</widget>
<widget
class=
"KPasswordLineEdit"
name=
"passwordEdit"
>
</widget>
</item>
<item
row=
"2"
column=
"0"
>
<widget
class=
"QLabel"
name=
"passwordLabel"
>
...
...
@@ -311,6 +302,11 @@
<header
location=
"global"
>
Libkdepim/ProgressIndicatorLabel
</header>
<container>
1
</container>
</customwidget>
<customwidget>
<class>
KPasswordLineEdit
</class>
<extends>
QWidget
</extends>
<header>
kpasswordlineedit.h
</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment