Skip to content

Commit 9c19142

Browse files
committed
Add some spacing around preview icons in property assistant
1 parent 7bf97be commit 9c19142

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/gui/qgspropertyassistantwidget.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ class ItemDelegate : public QItemDelegate
143143

144144
QSize sizeHint( const QStyleOptionViewItem& /*option*/, const QModelIndex & index ) const override
145145
{
146-
return mModel->item( index.row() )->icon().actualSize( QSize( 512, 512 ) );
146+
QSize size = mModel->item( index.row() )->icon().actualSize( QSize( 512, 512 ) );
147+
size.rheight() += 6;
148+
return size;
147149
}
148150

149151
private:

0 commit comments

Comments
 (0)