point 3) resolved; refs #108

master
Marc Wäckerlin 13 years ago
parent 9ae8812ef5
commit 8fdf550511
  1. 5
      src/pinentry.hxx
  2. 16
      src/pinentry.ui

@ -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,14 +169,6 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QStackedWidget" name="_certStack">
<property name="currentIndex">
<number>0</number>
</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"> <widget class="Certificate" name="_cert" native="true">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
@ -186,10 +178,6 @@
</property> </property>
</widget> </widget>
</item> </item>
</layout>
</widget>
</widget>
</item>
<item> <item>
<widget class="QDialogButtonBox" name="buttonBox"> <widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation"> <property name="orientation">

Loading…
Cancel
Save