Skip to content

Commit

Permalink
Fix tiny symbol layer list on hidpi
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 24, 2018
1 parent 39f36c3 commit b4c8f62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/symbology/qgssymbolselectordialog.cpp
Expand Up @@ -232,6 +232,9 @@ QgsSymbolSelectorWidget::QgsSymbolSelectorWidget( QgsSymbol *symbol, QgsStyle *s
setupUi( this );
this->layout()->setContentsMargins( 0, 0, 0, 0 );

layersTree->setMaximumHeight( static_cast< int >( Qgis::UI_SCALE_FACTOR * fontMetrics().height() * 7 ) );
layersTree->setMinimumHeight( layersTree->maximumHeight() );

// setup icons
btnAddLayer->setIcon( QIcon( QgsApplication::iconPath( "symbologyAdd.svg" ) ) );
btnRemoveLayer->setIcon( QIcon( QgsApplication::iconPath( "symbologyRemove.svg" ) ) );
Expand Down

0 comments on commit b4c8f62

Please sign in to comment.