Skip to content

Commit

Permalink
[needs-docs][layouts] Shuffle legend item widget tool buttons
Browse files Browse the repository at this point in the history
to reduce visual cumbersomeness
  • Loading branch information
nirvn authored and nyalldawson committed Nov 26, 2019
1 parent 10e7118 commit f5d542e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/app/layout/qgslayoutlegendwidget.cpp
Expand Up @@ -139,7 +139,7 @@ QgsLayoutLegendWidget::QgsLayoutLegendWidget( QgsLayoutItemLegend *legend )
mMoveUpToolButton->setIcon( QIcon( QgsApplication::iconPath( "mActionArrowUp.svg" ) ) );
mMoveDownToolButton->setIcon( QIcon( QgsApplication::iconPath( "mActionArrowDown.svg" ) ) );
mCountToolButton->setIcon( QIcon( QgsApplication::iconPath( "mActionSum.svg" ) ) );
mLayerExpressionButton->setIcon( QIcon( QgsApplication::iconPath( "mActionAddExpression.svg" ) ) );
mLayerExpressionButton->setIcon( QIcon( QgsApplication::iconPath( "mIconExpression.svg" ) ) );

mMoveDownToolButton->setIconSize( QgisApp::instance()->iconSize( true ) );
mMoveUpToolButton->setIconSize( QgisApp::instance()->iconSize( true ) );
Expand Down
54 changes: 27 additions & 27 deletions src/ui/layout/qgslayoutlegendwidgetbase.ui
Expand Up @@ -338,6 +338,23 @@
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="mLayerExpressionButton">
<property name="toolTip">
<string> Add an expression to the vector layer and each child symbol's label</string>
</property>
<property name="icon">
<iconset resource="../../../images/images.qrc">
<normaloff>:/images/themes/default/mIconExpression.svg</normaloff>:/images/themes/default/mIconExpression.svg</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="mCountToolButton">
<property name="enabled">
Expand Down Expand Up @@ -365,30 +382,26 @@
</widget>
</item>
<item>
<widget class="QgsLegendFilterButton" name="mExpressionFilterButton">
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../../../images/images.qrc">
<normaloff>:/images/themes/default/mIconExpressionFilter.svg</normaloff>:/images/themes/default/mIconExpressionFilter.svg</iconset>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="iconSize">
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<width>0</width>
<height>20</height>
</size>
</property>
</widget>
</spacer>
</item>
<item>
<widget class="QToolButton" name="mLayerExpressionButton">
<property name="toolTip">
<string> Add an expression to the vector layer and each child symbol's label</string>
<widget class="QgsLegendFilterButton" name="mExpressionFilterButton">
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../../../images/images.qrc">
<normaloff>:/images/themes/default/mActionAddExpression.svg</normaloff>:/images/themes/default/mActionAddExpression.svg</iconset>
<normaloff>:/images/themes/default/mIconExpressionFilter.svg</normaloff>:/images/themes/default/mIconExpressionFilter.svg</iconset>
</property>
<property name="iconSize">
<size>
Expand All @@ -398,19 +411,6 @@
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
Expand Down

0 comments on commit f5d542e

Please sign in to comment.