From ca2a9bea0ca668911fb51e8fd00e911739ee780b Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Fri, 22 Mar 2013 15:44:02 -0400 Subject: [PATCH] hide SOCKS password in UI --- settings.py | 6 ++++-- settings.ui | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/settings.py b/settings.py index 097ad033..7c3b342d 100644 --- a/settings.py +++ b/settings.py @@ -2,8 +2,8 @@ # Form implementation generated from reading ui file 'settings.ui' # -# Created: Wed Feb 27 00:00:12 2013 -# by: PyQt4 UI code generator 4.9.5 +# Created: Fri Mar 22 15:43:34 2013 +# by: PyQt4 UI code generator 4.9.4 # # WARNING! All changes made in this file will be lost! @@ -117,6 +117,8 @@ class Ui_settingsDialog(object): self.gridLayout_2.addWidget(self.label_6, 2, 4, 1, 1) self.lineEditSocksPassword = QtGui.QLineEdit(self.groupBox_2) self.lineEditSocksPassword.setEnabled(False) + self.lineEditSocksPassword.setInputMethodHints(QtCore.Qt.ImhHiddenText|QtCore.Qt.ImhNoAutoUppercase|QtCore.Qt.ImhNoPredictiveText) + self.lineEditSocksPassword.setEchoMode(QtGui.QLineEdit.Password) self.lineEditSocksPassword.setObjectName(_fromUtf8("lineEditSocksPassword")) self.gridLayout_2.addWidget(self.lineEditSocksPassword, 2, 5, 1, 1) self.gridLayout_4.addWidget(self.groupBox_2, 1, 0, 1, 1) diff --git a/settings.ui b/settings.ui index bf569277..44f2f50e 100644 --- a/settings.ui +++ b/settings.ui @@ -232,6 +232,12 @@ false + + Qt::ImhHiddenText|Qt::ImhNoAutoUppercase|Qt::ImhNoPredictiveText + + + QLineEdit::Password +