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