Skip to content

Commit

Permalink
Fix Geometry Generator expression button's icon
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored Sep 11, 2024
1 parent c85589e commit 7836196
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/gui/labeling/qgslabelinggui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ QgsLabelingGui::QgsLabelingGui( QgsMapLayer *layer, QgsMapCanvas *mapCanvas, con
mMaxScaleWidget->setMapCanvas( mCanvas );
mMaxScaleWidget->setShowCurrentScaleButton( true );

mGeometryGeneratorExpressionButton->setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum );
mGeometryGeneratorExpressionButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mIconExpression.svg" ) ) );

const QStringList calloutTypes = QgsApplication::calloutRegistry()->calloutTypes();
for ( const QString &type : calloutTypes )
{
Expand Down
5 changes: 1 addition & 4 deletions src/ui/qgstextformatwidgetbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -5478,7 +5478,7 @@ font-style: italic;</string>
<item>
<widget class="QgsCollapsibleGroupBox" name="mGeometryGeneratorGroupBox">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Generates or transforms the geometry to be used for labeling&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;The expression will be applied to each feature while rendering and the label will be placed based on the expression result.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Generates or transforms the geometry to be used for labeling&lt;/span&gt;&lt;/p&gt;&lt;p&gt;The expression will be applied to each feature while rendering and the label will be placed based on the expression result.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="title">
<string>Geometry Generator</string>
Expand Down Expand Up @@ -5514,9 +5514,6 @@ font-style: italic;</string>
</item>
<item row="1" column="1">
<widget class="QToolButton" name="mGeometryGeneratorExpressionButton">
<property name="text">
<string>...</string>
</property>
</widget>
</item>
<item row="4" column="0">
Expand Down

0 comments on commit 7836196

Please sign in to comment.