changeset 532:d4bf4ceee99d

Fixed size hint for list item delegate.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 29 Apr 2014 17:40:33 +0200
parents dec797c7230c
children b8b3d922bf0d
files ui/certificateitemdelegate.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ui/certificateitemdelegate.cpp	Tue Apr 29 15:02:31 2014 +0000
+++ b/ui/certificateitemdelegate.cpp	Tue Apr 29 17:40:33 2014 +0200
@@ -100,7 +100,7 @@
 QSize CertificateItemDelegate::sizeHint(const QStyleOptionViewItem &option,
     const QModelIndex &index) const
 {
-    int width = option.rect.width() - 50;
+    int width = QStyledItemDelegate::sizeHint(option, index).width() + 75;
     int height = 25;
     return QSize(width, height);
 }

http://wald.intevation.org/projects/trustbridge/