Use an icon for the button that shows/masks passwords.

Closes #38

Additionally make use of the new PasswordEdit class where possible.
This commit is contained in:
Felix Geyer
2014-01-12 17:08:36 +01:00
parent 8b437821a2
commit 223c5a1651
12 changed files with 39 additions and 77 deletions

View File

@@ -52,7 +52,7 @@
<item row="0" column="1">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLineEdit" name="enterPasswordEdit">
<widget class="PasswordEdit" name="enterPasswordEdit">
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
@@ -60,15 +60,9 @@
</item>
<item>
<widget class="QToolButton" name="togglePasswordButton">
<property name="text">
<string>...</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
@@ -81,7 +75,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="repeatPasswordEdit">
<widget class="PasswordEdit" name="repeatPasswordEdit">
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
@@ -151,6 +145,13 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>PasswordEdit</class>
<extends>QLineEdit</extends>
<header>gui/PasswordEdit.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>passwordGroup</tabstop>
<tabstop>enterPasswordEdit</tabstop>