Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
PimCommon
Commits
3545cb4e
Commit
3545cb4e
authored
Jul 03, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return passwordLineEdit widget
parent
a88d4f4e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
CMakeLists.txt
CMakeLists.txt
+1
-1
src/pimcommon/widgets/lineeditpassword.cpp
src/pimcommon/widgets/lineeditpassword.cpp
+5
-0
src/pimcommon/widgets/lineeditpassword.h
src/pimcommon/widgets/lineeditpassword.h
+2
-0
No files found.
CMakeLists.txt
View file @
3545cb4e
cmake_minimum_required
(
VERSION 3.0
)
cmake_minimum_required
(
VERSION 3.0
)
set
(
PIM_VERSION
"5.5.6
1
"
)
set
(
PIM_VERSION
"5.5.6
2
"
)
project
(
pimcommon VERSION
${
PIM_VERSION
}
)
project
(
pimcommon VERSION
${
PIM_VERSION
}
)
...
...
src/pimcommon/widgets/lineeditpassword.cpp
View file @
3545cb4e
...
@@ -87,6 +87,11 @@ void LineEditPassword::showToggleEchoModeAction(const QString &text)
...
@@ -87,6 +87,11 @@ void LineEditPassword::showToggleEchoModeAction(const QString &text)
mToggleEchoModeAction
->
setVisible
(
mIsToggleEchoModeAvailable
&&
(
mPasswordLineEdit
->
echoMode
()
==
QLineEdit
::
Normal
||
!
text
.
isEmpty
()));
mToggleEchoModeAction
->
setVisible
(
mIsToggleEchoModeAvailable
&&
(
mPasswordLineEdit
->
echoMode
()
==
QLineEdit
::
Normal
||
!
text
.
isEmpty
()));
}
}
QLineEdit
*
LineEditPassword
::
passwordLineEdit
()
const
{
return
mPasswordLineEdit
;
}
QAction
*
LineEditPassword
::
toggleEchoModeAction
()
const
QAction
*
LineEditPassword
::
toggleEchoModeAction
()
const
{
{
return
mToggleEchoModeAction
;
return
mToggleEchoModeAction
;
...
...
src/pimcommon/widgets/lineeditpassword.h
View file @
3545cb4e
...
@@ -35,6 +35,8 @@ public:
...
@@ -35,6 +35,8 @@ public:
QAction
*
toggleEchoModeAction
()
const
;
QAction
*
toggleEchoModeAction
()
const
;
QLineEdit
*
passwordLineEdit
()
const
;
private:
private:
void
initialize
();
void
initialize
();
void
toggleEchoMode
();
void
toggleEchoMode
();
...
...
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