Skip to content

Commit 9c19142

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gui/qgspropertyassistantwidget.h

+3-1
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)