2014-10-19 01:38:47 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<ui version="4.0">
|
|
|
|
<class>SetPasswordDialog</class>
|
|
|
|
<widget class="QDialog" name="SetPasswordDialog">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>0</x>
|
|
|
|
<y>0</y>
|
2015-10-11 01:58:59 +08:00
|
|
|
<width>255</width>
|
2014-12-06 14:17:13 +08:00
|
|
|
<height>160</height>
|
2014-10-19 01:38:47 +08:00
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="windowTitle">
|
2014-11-27 23:38:23 +08:00
|
|
|
<string>Set your password</string>
|
2014-10-19 01:38:47 +08:00
|
|
|
</property>
|
|
|
|
<property name="modal">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
|
|
<item>
|
2014-12-06 14:17:13 +08:00
|
|
|
<widget class="QLabel" name="body"/>
|
2014-10-19 01:38:47 +08:00
|
|
|
</item>
|
2014-11-28 00:58:33 +08:00
|
|
|
<item>
|
2014-12-06 14:17:13 +08:00
|
|
|
<layout class="QGridLayout" name="pswdsLayout">
|
|
|
|
<item row="4" column="0">
|
|
|
|
<widget class="QLabel" name="label_2">
|
2015-01-23 21:05:46 +08:00
|
|
|
<property name="alignment">
|
2015-10-11 01:58:59 +08:00
|
|
|
<set>Qt::AlignLeft</set>
|
2015-01-23 21:05:46 +08:00
|
|
|
</property>
|
2014-12-06 14:17:13 +08:00
|
|
|
<property name="text">
|
2015-10-11 01:58:59 +08:00
|
|
|
<string>Confirm:</string>
|
2014-12-06 14:17:13 +08:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="2" column="0">
|
2014-11-27 23:38:23 +08:00
|
|
|
<widget class="QLabel" name="label">
|
2015-01-23 21:05:46 +08:00
|
|
|
<property name="alignment">
|
2015-10-11 01:58:59 +08:00
|
|
|
<set>Qt::AlignLeft</set>
|
2015-01-23 21:05:46 +08:00
|
|
|
</property>
|
2014-11-27 23:38:23 +08:00
|
|
|
<property name="text">
|
2015-10-11 01:58:59 +08:00
|
|
|
<string>Password:</string>
|
2014-11-27 23:38:23 +08:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2014-12-06 14:17:13 +08:00
|
|
|
<item row="4" column="1">
|
2016-06-18 02:48:48 +08:00
|
|
|
<widget class="PasswordEdit" name="repasswordlineEdit"/>
|
2014-12-06 14:17:13 +08:00
|
|
|
</item>
|
|
|
|
<item row="2" column="1">
|
2016-06-18 02:48:48 +08:00
|
|
|
<widget class="PasswordEdit" name="passwordlineEdit"/>
|
2014-12-06 14:17:13 +08:00
|
|
|
</item>
|
2015-10-11 01:58:59 +08:00
|
|
|
<item row="6" column="0" colspan="2">
|
|
|
|
<widget class="QProgressBar" name="passStrengthMeter">
|
2014-12-06 14:17:13 +08:00
|
|
|
<property name="value">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="format">
|
2015-10-11 01:58:59 +08:00
|
|
|
<string>Password strength: %p%</string>
|
2014-11-27 23:38:23 +08:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
2014-10-19 01:38:47 +08:00
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<spacer name="verticalSpacer">
|
|
|
|
<property name="orientation">
|
|
|
|
<enum>Qt::Vertical</enum>
|
|
|
|
</property>
|
|
|
|
<property name="sizeHint" stdset="0">
|
|
|
|
<size>
|
|
|
|
<width>20</width>
|
2014-12-06 14:17:13 +08:00
|
|
|
<height>40</height>
|
2014-10-19 01:38:47 +08:00
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
</spacer>
|
|
|
|
</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>
|
|
|
|
<property name="centerButtons">
|
|
|
|
<bool>false</bool>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
2016-06-18 02:48:48 +08:00
|
|
|
<customwidgets>
|
|
|
|
<customwidget>
|
|
|
|
<class>PasswordEdit</class>
|
|
|
|
<extends>QLineEdit</extends>
|
|
|
|
<header>src/widget/passwordedit.h</header>
|
|
|
|
</customwidget>
|
|
|
|
</customwidgets>
|
2014-12-06 14:17:13 +08:00
|
|
|
<tabstops>
|
|
|
|
<tabstop>passwordlineEdit</tabstop>
|
|
|
|
<tabstop>repasswordlineEdit</tabstop>
|
|
|
|
</tabstops>
|
2014-10-19 01:38:47 +08:00
|
|
|
<resources/>
|
|
|
|
<connections>
|
|
|
|
<connection>
|
|
|
|
<sender>buttonBox</sender>
|
|
|
|
<signal>accepted()</signal>
|
|
|
|
<receiver>SetPasswordDialog</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>SetPasswordDialog</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>
|