[PATCH] Fixed size hint for list item delegate

Wald Commits scm-commit at wald.intevation.org
Tue Apr 29 17:40:41 CEST 2014


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1398786033 -7200
# Node ID d4bf4ceee99d5359720d09890e347854c3cfe3c9
# Parent  dec797c7230c2f6ef1dab6e3f221f068aa0c6b4c
Fixed size hint for list item delegate.

diff -r dec797c7230c -r d4bf4ceee99d ui/certificateitemdelegate.cpp
--- 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);
 }


More information about the Trustbridge-commits mailing list