qt5base-lts/examples/network/securesocketclient/certificateinfo.ui
Timur Pocheptsov ddb191e47a QtNetwork (examples) - update secure socket client example
This patch contains:

- some cosmetic changes to  make example look more like
  modern C++;
- UI initialization code and SSL signals handling were split
  into separate member-functions;
- useless checks 'if (socket)' were deleted;
- widget's minimum size is now fixed + font size
  in 'CertInfo' dialog increased to make it readable.

Change-Id: I7aadb78896832a989494d280d6da0635045f948c
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2017-09-25 13:59:50 +00:00

102 lines
2.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>CertificateInfo</class>
<widget class="QDialog" name="CertificateInfo">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>397</height>
</rect>
</property>
<property name="windowTitle">
<string>Display Certificate Information</string>
</property>
<layout class="QVBoxLayout">
<property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum>
</property>
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Certification Path</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="certificationPathView">
<property name="minimumContentsLength">
<number>3</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Certificate Information</string>
</property>
</widget>
</item>
<item>
<widget class="QListWidget" name="certificateInfoView">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout">
<property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum>
</property>
<item>
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Close</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>clicked(QAbstractButton*)</signal>
<receiver>CertificateInfo</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>343</x>
<y>374</y>
</hint>
<hint type="destinationlabel">
<x>352</x>
<y>422</y>
</hint>
</hints>
</connection>
</connections>
</ui>