From f790ccee6ff6f261a307caa10252a68e954a2349 Mon Sep 17 00:00:00 2001 From: oneeyeman1 Date: Sun, 18 Nov 2018 23:19:45 -0500 Subject: [PATCH] Implement Password style for text control under wxQt --- src/qt/textctrl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt/textctrl.cpp b/src/qt/textctrl.cpp index c600216903..d9069b9b60 100644 --- a/src/qt/textctrl.cpp +++ b/src/qt/textctrl.cpp @@ -121,6 +121,8 @@ bool wxTextCtrl::Create(wxWindow *parent, { m_qtLineEdit = new wxQtLineEdit( parent, this ); m_qtTextEdit = NULL; + if( style & wxTE_PASSWORD ) + m_qtLineEdit->setEchoMode( QLineEdit::Password ); } else {