Skip to content
Permalink
Browse files

better layout

  • Loading branch information
3nids committed Mar 22, 2021
1 parent e9036bb commit 413848ced7da888547514af5b1c8066fd8550f59
Showing with 14 additions and 25 deletions.
  1. +1 −1 src/gui/symbology/qgssvgselectorwidget.cpp
  2. +13 −24 src/ui/symbollayer/widget_svgselector.ui
@@ -404,7 +404,7 @@ QgsSvgSelectorWidget::QgsSvgSelectorWidget( QWidget *parent )

connect( mSvgFilterLineEdit, &QgsFilterLineEdit::textChanged, this, [ = ]( const QString & filterText )
{
if ( mImagesListView->selectionModel()->selectedIndexes().count() > 0 )
if ( !mImagesListView->selectionModel()->selectedIndexes().isEmpty() )
{
disconnect( mImagesListView->selectionModel(), &QItemSelectionModel::currentChanged, this, &QgsSvgSelectorWidget::svgSelectionChanged );
mImagesListView->selectionModel()->clearSelection();
@@ -48,6 +48,9 @@
</property>
<widget class="QWidget" name="layoutWidget">
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>2</number>
</property>
<item>
<widget class="QLabel" name="mGroupsLabel">
<property name="text">
@@ -75,6 +78,9 @@
</widget>
<widget class="QWidget" name="layoutWidget_1">
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>2</number>
</property>
<item>
<widget class="QLabel" name="mImagesLabel">
<property name="text">
@@ -128,34 +134,17 @@
</property>
</widget>
</item>
<item>
<widget class="QgsFilterLineEdit" name="mSvgFilterLineEdit">
<property name="showSearchIcon" stdset="0">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
<item row="2" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QgsFilterLineEdit" name="mSvgFilterLineEdit">
<property name="showSearchIcon" stdset="0">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>

0 comments on commit 413848c

Please sign in to comment.