|
|
@ -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) { |
|
|
|