Skip to content

Commit

Permalink
[ui] Set a sensible minimum height to saved symbol list widget
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and nyalldawson committed Apr 6, 2020
1 parent 06ff0d2 commit 689d886
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsstyleitemslistwidget.cpp
Expand Up @@ -86,6 +86,7 @@ QgsStyleItemsListWidget::QgsStyleItemsListWidget( QWidget *parent )
double treeIconSize = Qgis::UI_SCALE_FACTOR * fontMetrics().horizontalAdvance( 'X' ) * 2;
#endif
mSymbolTreeView->setIconSize( QSize( static_cast< int >( treeIconSize ), static_cast< int >( treeIconSize ) ) );
mSymbolTreeView->setMinimumHeight( mSymbolTreeView->fontMetrics().height() * 6 );

viewSymbols->setSelectionBehavior( QAbstractItemView::SelectRows );
mSymbolTreeView->setSelectionMode( viewSymbols->selectionMode() );
Expand Down

0 comments on commit 689d886

Please sign in to comment.