Mon, 22 Jul 2024 10:15:41 +0200
Continued implementing the FIDO2 security key management interface.
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>Fido2PinDialog</class> <widget class="QDialog" name="Fido2PinDialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>400</width> <height>280</height> </rect> </property> <property name="windowTitle"> <string>PIN Entry</string> </property> <property name="sizeGripEnabled"> <bool>true</bool> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QLabel" name="headerLabel"> <property name="text"> <string notr="true">Header</string> </property> </widget> </item> <item> <widget class="QLabel" name="descriptionLabel"> <property name="text"> <string notr="true">Description</string> </property> </widget> </item> <item> <widget class="QWidget" name="remainingWidget" native="true"> <layout class="QHBoxLayout" name="horizontalLayout_2"> <property name="leftMargin"> <number>0</number> </property> <property name="topMargin"> <number>0</number> </property> <property name="rightMargin"> <number>0</number> </property> <property name="bottomMargin"> <number>0</number> </property> <item> <widget class="QLabel" name="label"> <property name="text"> <string>Attempts remaining:</string> </property> </widget> </item> <item> <widget class="QLabel" name="remainingLabel"/> </item> <item> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>251</width> <height>20</height> </size> </property> </spacer> </item> </layout> </widget> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QLabel" name="pinLabel"> <property name="text"> <string>PIN:</string> </property> </widget> </item> <item> <widget class="QLineEdit" name="pinEdit"> <property name="toolTip"> <string>Enter the PIN</string> </property> <property name="echoMode"> <enum>QLineEdit::Password</enum> </property> </widget> </item> <item> <widget class="QToolButton" name="pinButton"> <property name="toolTip"> <string>Press to show or hide the PIN.</string> </property> <property name="checkable"> <bool>true</bool> </property> </widget> </item> </layout> </item> <item> <widget class="QGroupBox" name="newPinGroupBox"> <property name="title"> <string>New PIN</string> </property> <property name="flat"> <bool>true</bool> </property> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0"> <widget class="QLabel" name="newPinLabel"> <property name="text"> <string>PIN:</string> </property> </widget> </item> <item row="1" column="0"> <widget class="QLabel" name="confirmNewPinLabel"> <property name="text"> <string>Confirm PIN:</string> </property> </widget> </item> <item row="1" column="1"> <widget class="QLineEdit" name="confirmNewPinEdit"> <property name="toolTip"> <string>Enter the same PIN again.</string> </property> <property name="echoMode"> <enum>QLineEdit::Password</enum> </property> </widget> </item> <item row="0" column="1"> <widget class="QLineEdit" name="newPinEdit"> <property name="toolTip"> <string>Enter the new PIN</string> </property> <property name="echoMode"> <enum>QLineEdit::Password</enum> </property> </widget> </item> <item row="0" column="2"> <widget class="QToolButton" name="newPinButton"> <property name="toolTip"> <string>Press to show or hide the new PIN.</string> </property> <property name="checkable"> <bool>true</bool> </property> </widget> </item> </layout> </widget> </item> <item> <widget class="QLabel" name="pinErrorLabel"> <property name="text"> <string notr="true">PIN Error</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> <tabstops> <tabstop>pinEdit</tabstop> <tabstop>newPinEdit</tabstop> <tabstop>confirmNewPinEdit</tabstop> <tabstop>pinButton</tabstop> <tabstop>newPinButton</tabstop> </tabstops> <resources/> <connections> <connection> <sender>buttonBox</sender> <signal>accepted()</signal> <receiver>Fido2PinDialog</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>Fido2PinDialog</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>