Skip to content

Commit

Permalink
Fix alignment issues in symbol widget text
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 13, 2018
1 parent 84d4853 commit 89e48d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/gui/symbology/qgssymbolslistwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion src/ui/symbollayer/widget_symbolslist.ui
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 89e48d4

Please sign in to comment.