From 32ca1abf404b5e5f8386ddb7834cf25ee6d64544 Mon Sep 17 00:00:00 2001 From: sshane Date: Mon, 26 Jul 2021 22:55:12 -0700 Subject: [PATCH] ui: password mask delay (#21737) old-commit-hash: dd8eb23ea972739ee620b34650471893bda0f8b0 --- selfdrive/ui/qt/widgets/input.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/widgets/input.cc b/selfdrive/ui/qt/widgets/input.cc index d20faf8f28..6fc51c6103 100644 --- a/selfdrive/ui/qt/widgets/input.cc +++ b/selfdrive/ui/qt/widgets/input.cc @@ -77,6 +77,7 @@ InputDialog::InputDialog(const QString &title, QWidget *parent, const QString &s )"); line = new QLineEdit(); + line->setStyleSheet("lineedit-password-mask-delay: 1500;"); textbox_layout->addWidget(line, 1); if (secret) { @@ -87,7 +88,7 @@ InputDialog::InputDialog(const QString &title, QWidget *parent, const QString &s if (checked) { eye_btn->setIcon(QIcon(ASSET_PATH + "img_eye_closed.svg")); eye_btn->setIconSize(QSize(81, 54)); - line->setEchoMode(QLineEdit::PasswordEchoOnEdit); + line->setEchoMode(QLineEdit::Password); } else { eye_btn->setIcon(QIcon(ASSET_PATH + "img_eye_open.svg")); eye_btn->setIconSize(QSize(81, 44));