From 27d7590671bc13c58c8e656041907e724378e136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Thu, 10 May 2012 09:22:07 +0000 Subject: [PATCH] adjust size of all childre; refs #149 --- src/certificate.hxx | 4 ++++ src/pinentry.hxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/certificate.hxx b/src/certificate.hxx index cfbedd7..598c9b7 100644 --- a/src/certificate.hxx +++ b/src/certificate.hxx @@ -21,6 +21,10 @@ class Certificate: public QWidget, protected Ui::Certificate { Certificate(QWidget* p): QWidget(p) { setupUi(this); } + void adjust() { + _cert->adjustSize(); + adjustSize(); + } Certificate& certificate(const QSslCertificate& cert) { _cert->clear(); if (!cert.isValid()) return *this; diff --git a/src/pinentry.hxx b/src/pinentry.hxx index 06e8ca1..012a918 100644 --- a/src/pinentry.hxx +++ b/src/pinentry.hxx @@ -74,7 +74,7 @@ class PinEntry: public QDialog, public Ui::PinEntry { protected Q_SLOTS: void on__showDetails_toggled(bool s) { _cert->setVisible(s); - _cert->adjustSize(); + _cert->adjust(); adjustSize(); } protected: