Skip to content
Permalink
Browse files

Fix some data defined buttons show in text format widget

  • Loading branch information
nyalldawson committed May 8, 2018
1 parent e936cd7 commit 00d7ab6a430d177c54816a8cacda631221aef947
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/gui/qgstextformatwidget.cpp
@@ -1178,7 +1178,7 @@ void QgsTextFormatWidget::mShapeTypeCmbBx_currentIndexChanged( int index )
// symbology SVG renderer only supports size^2 scaling, so we only use the x size spinbox
mShapeSizeYLabel->setVisible( !isSVG );
mShapeSizeYSpnBx->setVisible( !isSVG );
mShapeSizeYDDBtn->setVisible( !isSVG );
mShapeSizeYDDBtn->setVisible( !isSVG && mWidgetMode == Labeling );
mShapeSizeXLabel->setText( tr( "Size%1" ).arg( !isSVG ? tr( " X" ) : QLatin1String( "" ) ) );

// SVG parameter setting doesn't support color's alpha component yet
@@ -1421,16 +1421,16 @@ void QgsTextFormatWidget::showBackgroundRadius( bool show )

mShapeRadiusUnitWidget->setVisible( show );

mShapeRadiusDDBtn->setVisible( show );
mShapeRadiusUnitsDDBtn->setVisible( show );
mShapeRadiusDDBtn->setVisible( show && mWidgetMode == Labeling );
mShapeRadiusUnitsDDBtn->setVisible( show && mWidgetMode == Labeling );
}

void QgsTextFormatWidget::showBackgroundPenStyle( bool show )
{
mShapePenStyleLabel->setVisible( show );
mShapePenStyleCmbBx->setVisible( show );

mShapePenStyleDDBtn->setVisible( show );
mShapePenStyleDDBtn->setVisible( show && mWidgetMode == Labeling );
}

void QgsTextFormatWidget::enableDataDefinedAlignment( bool enable )

0 comments on commit 00d7ab6

Please sign in to comment.
You can’t perform that action at this time.