Skip to content

Commit 00d7ab6

Browse files
committedMay 8, 2018
Fix some data defined buttons show in text format widget
1 parent e936cd7 commit 00d7ab6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/gui/qgstextformatwidget.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ void QgsTextFormatWidget::mShapeTypeCmbBx_currentIndexChanged( int index )
11781178
// symbology SVG renderer only supports size^2 scaling, so we only use the x size spinbox
11791179
mShapeSizeYLabel->setVisible( !isSVG );
11801180
mShapeSizeYSpnBx->setVisible( !isSVG );
1181-
mShapeSizeYDDBtn->setVisible( !isSVG );
1181+
mShapeSizeYDDBtn->setVisible( !isSVG && mWidgetMode == Labeling );
11821182
mShapeSizeXLabel->setText( tr( "Size%1" ).arg( !isSVG ? tr( " X" ) : QLatin1String( "" ) ) );
11831183

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

14221422
mShapeRadiusUnitWidget->setVisible( show );
14231423

1424-
mShapeRadiusDDBtn->setVisible( show );
1425-
mShapeRadiusUnitsDDBtn->setVisible( show );
1424+
mShapeRadiusDDBtn->setVisible( show && mWidgetMode == Labeling );
1425+
mShapeRadiusUnitsDDBtn->setVisible( show && mWidgetMode == Labeling );
14261426
}
14271427

14281428
void QgsTextFormatWidget::showBackgroundPenStyle( bool show )
14291429
{
14301430
mShapePenStyleLabel->setVisible( show );
14311431
mShapePenStyleCmbBx->setVisible( show );
14321432

1433-
mShapePenStyleDDBtn->setVisible( show );
1433+
mShapePenStyleDDBtn->setVisible( show && mWidgetMode == Labeling );
14341434
}
14351435

14361436
void QgsTextFormatWidget::enableDataDefinedAlignment( bool enable )

0 commit comments

Comments
 (0)
Please sign in to comment.