Mercurial > trustbridge
diff ui/certificateitemwidget.cpp @ 786:4eff77851e76
Use minimum size for certificates to avoid scaling in small lists.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 14 Jul 2014 15:51:48 +0200 |
parents | 9f13c00a2647 |
children | b108510bac5a |
line wrap: on
line diff
--- a/ui/certificateitemwidget.cpp Mon Jul 14 13:21:17 2014 +0200 +++ b/ui/certificateitemwidget.cpp Mon Jul 14 15:51:48 2014 +0200 @@ -45,6 +45,8 @@ mComboBox->setIconSize(QSize(48, 48)); mComboBox->setFixedWidth(68); + setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum); + const QString validity = tr("Valid: %1 until %2").arg( QLocale::system().toString(mCertificate.validFrom().date(), QLocale::ShortFormat)).arg( QLocale::system().toString(mCertificate.validTo().date(), QLocale::ShortFormat)); @@ -54,7 +56,7 @@ (fpstring)); mLabel->setTextFormat(Qt::RichText); - mLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + mLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum); mLabel->setTextInteractionFlags( Qt::TextSelectableByMouse |