Skip to content
Permalink
Browse files
Display dedicated icon next to the attribute table filter drop-down i…
…tems
  • Loading branch information
DelazJ committed Jun 1, 2021
1 parent 3e39855 commit 5f70fcb62c87c458446273e2ddfb884dd8db9913
Showing with 7 additions and 8 deletions.
  1. +4 −5 src/gui/attributetable/qgsfeaturefilterwidget.cpp
  2. +3 −3 src/ui/qgsfeaturefilterwidget.ui
@@ -52,12 +52,11 @@ QgsFeatureFilterWidget::QgsFeatureFilterWidget( QWidget *parent )
mActionStoredFilterExpressions->setMenu( mStoredFilterExpressionMenu );

// Set filter icon in a couple of places
QIcon filterIcon = QgsApplication::getThemeIcon( "/mActionFilter2.svg" );
mActionShowAllFilter->setIcon( filterIcon );
mActionAdvancedFilter->setIcon( filterIcon );
mActionSelectedFilter->setIcon( filterIcon );
mActionVisibleFilter->setIcon( filterIcon );
mActionEditedFilter->setIcon( filterIcon );
mActionShowAllFilter->setIcon( QgsApplication::getThemeIcon( "/mActionOpenTable.svg" ) );
mActionAdvancedFilter->setIcon( QgsApplication::getThemeIcon( "/mActionFilter2.svg" ) );
mActionSelectedFilter->setIcon( QgsApplication::getThemeIcon( "/mActionOpenTableSelected.svg" ) );
mActionVisibleFilter->setIcon( QgsApplication::getThemeIcon( "/mActionOpenTableVisible.svg" ) );


// Set button to store or delete stored filter expressions
@@ -165,7 +165,7 @@
<action name="mActionShowAllFilter">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionFilter.svg</normaloff>:/images/themes/default/mActionFilter.svg</iconset>
<normaloff>:/images/themes/default/mActionOpenTable.svg</normaloff>:/images/themes/default/mActionOpenTable.svg</iconset>
</property>
<property name="text">
<string>Show All Features</string>
@@ -186,7 +186,7 @@
<action name="mActionSelectedFilter">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionFilter.svg</normaloff>:/images/themes/default/mActionFilter.svg</iconset>
<normaloff>:/images/themes/default/mActionOpenTableSelected.svg</normaloff>:/images/themes/default/mActionOpenTableSelected.svg</iconset>
</property>
<property name="text">
<string>Show Selected Features</string>
@@ -195,7 +195,7 @@
<action name="mActionVisibleFilter">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionFilter.svg</normaloff>:/images/themes/default/mActionFilter.svg</iconset>
<normaloff>:/images/themes/default/mActionOpenTableVisible.svg</normaloff>:/images/themes/default/mActionOpenTableVisible.svg</iconset>
</property>
<property name="text">
<string>Show Features Visible On Map</string>

0 comments on commit 5f70fcb

Please sign in to comment.