Skip to content

Commit 89e48d4

Browse files
committed
Fix alignment issues in symbol widget text
1 parent 84d4853 commit 89e48d4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/gui/symbology/qgssymbolslistwidget.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ QgsSymbolsListWidget::QgsSymbolsListWidget( QgsSymbol *symbol, QgsStyle *style,
116116

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

121120
mModel->sourceModel()->setProperty( "icon_sizes", QVariantList() << viewSymbols->iconSize() );
122121
viewSymbols->setModel( mModel );

src/ui/symbollayer/widget_symbolslist.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<enum>QListView::IconMode</enum>
6767
</property>
6868
<property name="uniformItemSizes">
69-
<bool>true</bool>
69+
<bool>false</bool>
7070
</property>
7171
<property name="wordWrap">
7272
<bool>true</bool>

0 commit comments

Comments
 (0)