Skip to content

Commit

Permalink
Fixes line height and icon size on hidpi screens
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and m-kuhn committed Oct 7, 2015
1 parent 2702cb1 commit fd062ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/attributetable/qgsfeaturelistviewdelegate.cpp
Expand Up @@ -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
Expand Down

0 comments on commit fd062ce

Please sign in to comment.