Mercurial > trustbridge
changeset 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 | 2fb539d4b1ff |
children | 07cc0aabf782 |
files | ui/certificateitemwidget.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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 |