Skip to content
Permalink
Browse files

Fix alignment issues in symbol widget text

  • Loading branch information
nyalldawson committed Sep 13, 2018
1 parent 84d4853 commit 89e48d4078e688666a5eb9689630718a5dec5fff
Showing with 1 addition and 2 deletions.
  1. +0 −1 src/gui/symbology/qgssymbolslistwidget.cpp
  2. +1 −1 src/ui/symbollayer/widget_symbolslist.ui
@@ -116,7 +116,6 @@ QgsSymbolsListWidget::QgsSymbolsListWidget( QgsSymbol *symbol, QgsStyle *style,

double iconSize = Qgis::UI_SCALE_FACTOR * fontMetrics().width( 'X' ) * 10;
viewSymbols->setIconSize( QSize( static_cast< int >( iconSize ), static_cast< int >( iconSize * 0.9 ) ) ); // ~100, 90 on low dpi
viewSymbols->setGridSize( QSize( static_cast< int >( iconSize * 1.2 ), static_cast< int >( iconSize * 1.1 ) ) ); // ~120,110 on low dpi

mModel->sourceModel()->setProperty( "icon_sizes", QVariantList() << viewSymbols->iconSize() );
viewSymbols->setModel( mModel );
@@ -66,7 +66,7 @@
<enum>QListView::IconMode</enum>
</property>
<property name="uniformItemSizes">
<bool>true</bool>
<bool>false</bool>
</property>
<property name="wordWrap">
<bool>true</bool>

0 comments on commit 89e48d4

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