adjust size of all childre; refs #149

This commit is contained in:
Marc Wäckerlin
2012-05-10 09:22:07 +00:00
parent be64cff014
commit 27d7590671
2 changed files with 5 additions and 1 deletions

View File

@@ -21,6 +21,10 @@ class Certificate: public QWidget, protected Ui::Certificate {
Certificate(QWidget* p): QWidget(p) { Certificate(QWidget* p): QWidget(p) {
setupUi(this); setupUi(this);
} }
void adjust() {
_cert->adjustSize();
adjustSize();
}
Certificate& certificate(const QSslCertificate& cert) { Certificate& certificate(const QSslCertificate& cert) {
_cert->clear(); _cert->clear();
if (!cert.isValid()) return *this; if (!cert.isValid()) return *this;

View File

@@ -74,7 +74,7 @@ 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) {
_cert->setVisible(s); _cert->setVisible(s);
_cert->adjustSize(); _cert->adjust();
adjustSize(); adjustSize();
} }
protected: protected: