Skip to content
Permalink
Browse files

Fixes line height and icon size on hidpi screens

  • Loading branch information
elpaso authored and m-kuhn committed Oct 7, 2015
1 parent 2702cb1 commit fd062cee412412e1b5edb6fa7d0a5f6a0ef8aae8
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/attributetable/qgsfeaturelistviewdelegate.cpp
@@ -52,7 +52,9 @@ void QgsFeatureListViewDelegate::setEditSelectionModel( QItemSelectionModel* edi
QSize QgsFeatureListViewDelegate::sizeHint( const QStyleOptionViewItem& option, const QModelIndex& index ) const
{
Q_UNUSED( index )
return QSize( option.rect.width(), sIconSize );
QSize size = QItemDelegate::sizeHint( option, index );
size.setHeight( option.fontMetrics.height() );
return size;
}

void QgsFeatureListViewDelegate::paint( QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const

0 comments on commit fd062ce

Please sign in to comment.
You can’t perform that action at this time.