From 783619632f5efefdbb574efc014ced817bc0e893 Mon Sep 17 00:00:00 2001 From: Andrea Giudiceandrea Date: Wed, 11 Sep 2024 13:50:04 +0200 Subject: [PATCH] Fix Geometry Generator expression button's icon --- src/gui/labeling/qgslabelinggui.cpp | 3 +++ src/ui/qgstextformatwidgetbase.ui | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/labeling/qgslabelinggui.cpp b/src/gui/labeling/qgslabelinggui.cpp index 17b755b24d85..22ce101b47e3 100644 --- a/src/gui/labeling/qgslabelinggui.cpp +++ b/src/gui/labeling/qgslabelinggui.cpp @@ -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 ) { diff --git a/src/ui/qgstextformatwidgetbase.ui b/src/ui/qgstextformatwidgetbase.ui index 2a4c75ddd1c2..07a5ee37db01 100644 --- a/src/ui/qgstextformatwidgetbase.ui +++ b/src/ui/qgstextformatwidgetbase.ui @@ -5478,7 +5478,7 @@ font-style: italic; - <html><head/><body><p><span style=" font-weight:600;">Generates or transforms the geometry to be used for labeling</span></p><p><br/></p><p>The expression will be applied to each feature while rendering and the label will be placed based on the expression result.</p></body></html> + <html><head/><body><p><span style=" font-weight:600;">Generates or transforms the geometry to be used for labeling</span></p><p>The expression will be applied to each feature while rendering and the label will be placed based on the expression result.</p></body></html> Geometry Generator @@ -5514,9 +5514,6 @@ font-style: italic; - - ... -