Commit 3545cb4e authored by Laurent Montel's avatar Laurent Montel 😁

Return passwordLineEdit widget

parent a88d4f4e
cmake_minimum_required(VERSION 3.0) cmake_minimum_required(VERSION 3.0)
set(PIM_VERSION "5.5.61") set(PIM_VERSION "5.5.62")
project(pimcommon VERSION ${PIM_VERSION}) project(pimcommon VERSION ${PIM_VERSION})
......
...@@ -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;
......
...@@ -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();
......
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