diff ui/certificateitemdelegate.cpp @ 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 2e5499fae159
children
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/