Skip to content

Commit b4c8f62

Browse files
committed
Fix tiny symbol layer list on hidpi
1 parent 39f36c3 commit b4c8f62

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gui/symbology/qgssymbolselectordialog.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ QgsSymbolSelectorWidget::QgsSymbolSelectorWidget( QgsSymbol *symbol, QgsStyle *s
232232
setupUi( this );
233233
this->layout()->setContentsMargins( 0, 0, 0, 0 );
234234

235+
layersTree->setMaximumHeight( static_cast< int >( Qgis::UI_SCALE_FACTOR * fontMetrics().height() * 7 ) );
236+
layersTree->setMinimumHeight( layersTree->maximumHeight() );
237+
235238
// setup icons
236239
btnAddLayer->setIcon( QIcon( QgsApplication::iconPath( "symbologyAdd.svg" ) ) );
237240
btnRemoveLayer->setIcon( QIcon( QgsApplication::iconPath( "symbologyRemove.svg" ) ) );

0 commit comments

Comments
 (0)