+ don't use hardcoded height in PropertyItemDelegate::sizeHint

This commit is contained in:
wmayer 2015-09-11 10:35:48 +02:00
parent 9bceab911b
commit ec898944af

View File

@ -47,7 +47,7 @@ PropertyItemDelegate::~PropertyItemDelegate()
QSize PropertyItemDelegate::sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index) const QSize PropertyItemDelegate::sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index) const
{ {
QSize size = QItemDelegate::sizeHint(option, index); QSize size = QItemDelegate::sizeHint(option, index);
size.setHeight(20); size += QSize(0, 5);
return size; return size;
} }