Skip to content

Commit

Permalink
Add some spacing around preview icons in property assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 14, 2017
1 parent 7bf97be commit 9c19142
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/qgspropertyassistantwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ class ItemDelegate : public QItemDelegate

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

private:
Expand Down

0 comments on commit 9c19142

Please sign in to comment.