point 3) resolved; refs #108
This commit is contained in:
@@ -25,6 +25,7 @@ class PinEntry: public QDialog, public Ui::PinEntry {
|
|||||||
PinEntry(const QSslCertificate& cert, QWidget *parent=0): QDialog(parent) {
|
PinEntry(const QSslCertificate& cert, QWidget *parent=0): QDialog(parent) {
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
_cert->certificate(cert);
|
_cert->certificate(cert);
|
||||||
|
on__showDetails_toggled(false);
|
||||||
_name->setText(utfConv(cert.subjectInfo(QSslCertificate::CommonName))
|
_name->setText(utfConv(cert.subjectInfo(QSslCertificate::CommonName))
|
||||||
.remove(" (Authentication)"));
|
.remove(" (Authentication)"));
|
||||||
_mail->setText(utfConv(cert.alternateSubjectNames()
|
_mail->setText(utfConv(cert.alternateSubjectNames()
|
||||||
@@ -73,7 +74,9 @@ class PinEntry: public QDialog, public Ui::PinEntry {
|
|||||||
}
|
}
|
||||||
protected Q_SLOTS:
|
protected Q_SLOTS:
|
||||||
void on__showDetails_toggled(bool s) {
|
void on__showDetails_toggled(bool s) {
|
||||||
_certStack->setCurrentIndex(s?1:0);
|
_cert->setVisible(s);
|
||||||
|
_cert->adjustSize();
|
||||||
|
adjustSize();
|
||||||
}
|
}
|
||||||
protected:
|
protected:
|
||||||
QString utfConv(const QString& txt) {
|
QString utfConv(const QString& txt) {
|
||||||
|
@@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>603</width>
|
<width>668</width>
|
||||||
<height>494</height>
|
<height>602</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@@ -169,25 +169,13 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QStackedWidget" name="_certStack">
|
<widget class="Certificate" name="_cert" native="true">
|
||||||
<property name="currentIndex">
|
<property name="sizePolicy">
|
||||||
<number>0</number>
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="page_4"/>
|
|
||||||
<widget class="QWidget" name="page_5">
|
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="Certificate" name="_cert" native="true">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
Reference in New Issue
Block a user