Skip to content

Commit

Permalink
better layout
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Mar 22, 2021
1 parent e9036bb commit 413848c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/gui/symbology/qgssvgselectorwidget.cpp
Expand Up @@ -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();
Expand Down
37 changes: 13 additions & 24 deletions src/ui/symbollayer/widget_svgselector.ui
Expand Up @@ -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">
Expand Down Expand Up @@ -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">
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 413848c

Please sign in to comment.