Mon, 07 Nov 2022 17:19:58 +0100
Corrected/acknowledged some bad import style and removed some obsolete code.
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>MasterPasswordEntryDialog</class> <widget class="QDialog" name="MasterPasswordEntryDialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>450</width> <height>300</height> </rect> </property> <property name="windowTitle"> <string>Master Password</string> </property> <property name="sizeGripEnabled"> <bool>true</bool> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QLabel" name="label"> <property name="text"> <string><p>Enter your master password below. This password will be used to encrypt sensitive data. You will be asked once per session for this password when the data needs to be accessed for the first time.<br/><br/><b>Note: If you forget the master password, the encrypted data cannot be recovered!</b></p></string> </property> <property name="wordWrap"> <bool>true</bool> </property> </widget> </item> <item> <spacer name="verticalSpacer"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>28</height> </size> </property> </spacer> </item> <item> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0"> <widget class="QLabel" name="label_2"> <property name="text"> <string>Current Password:</string> </property> </widget> </item> <item row="0" column="1"> <widget class="QLineEdit" name="currentPasswordEdit"> <property name="toolTip"> <string>Enter the current password</string> </property> <property name="echoMode"> <enum>QLineEdit::Password</enum> </property> </widget> </item> <item row="1" column="0"> <widget class="QLabel" name="label_3"> <property name="text"> <string>New Password:</string> </property> </widget> </item> <item row="1" column="1"> <widget class="QLineEdit" name="newPasswordEdit"> <property name="toolTip"> <string>Enter the new password</string> </property> <property name="echoMode"> <enum>QLineEdit::Password</enum> </property> </widget> </item> <item row="2" column="0"> <widget class="QLabel" name="label_4"> <property name="text"> <string>New Password (again):</string> </property> </widget> </item> <item row="2" column="1"> <widget class="QLineEdit" name="newPasswordAgainEdit"> <property name="toolTip"> <string>Repeat the new password</string> </property> <property name="echoMode"> <enum>QLineEdit::Password</enum> </property> </widget> </item> </layout> </item> <item> <widget class="EricPasswordMeter" name="passwordMeter"> <property name="toolTip"> <string>Shows an indication for the password strength</string> </property> </widget> </item> <item> <widget class="QLabel" name="errorLabel"> <property name="styleSheet"> <string notr="true">color : red;</string> </property> <property name="wordWrap"> <bool>true</bool> </property> </widget> </item> <item> <widget class="QDialogButtonBox" name="buttonBox"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="standardButtons"> <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> </property> </widget> </item> </layout> </widget> <customwidgets> <customwidget> <class>EricPasswordMeter</class> <extends>QProgressBar</extends> <header>eric7/EricWidgets/EricPasswordMeter</header> </customwidget> </customwidgets> <tabstops> <tabstop>currentPasswordEdit</tabstop> <tabstop>newPasswordEdit</tabstop> <tabstop>newPasswordAgainEdit</tabstop> <tabstop>buttonBox</tabstop> </tabstops> <resources/> <connections> <connection> <sender>buttonBox</sender> <signal>accepted()</signal> <receiver>MasterPasswordEntryDialog</receiver> <slot>accept()</slot> <hints> <hint type="sourcelabel"> <x>248</x> <y>254</y> </hint> <hint type="destinationlabel"> <x>157</x> <y>274</y> </hint> </hints> </connection> <connection> <sender>buttonBox</sender> <signal>rejected()</signal> <receiver>MasterPasswordEntryDialog</receiver> <slot>reject()</slot> <hints> <hint type="sourcelabel"> <x>316</x> <y>260</y> </hint> <hint type="destinationlabel"> <x>286</x> <y>274</y> </hint> </hints> </connection> </connections> </ui>