Skip to content

Commit af9bf7e

Browse files
committedMay 3, 2020
Show distance controls when labeling outside polygon modes are enabled
Because these impact how far outside the polygons the labels will be placed
1 parent e10c9f3 commit af9bf7e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/gui/qgstextformatwidget.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ void QgsTextFormatWidget::initWidget()
261261
// post updatePlacementWidgets() connections
262262
connect( chkLineAbove, &QAbstractButton::toggled, this, &QgsTextFormatWidget::updatePlacementWidgets );
263263
connect( chkLineBelow, &QAbstractButton::toggled, this, &QgsTextFormatWidget::updatePlacementWidgets );
264+
connect( mCheckAllowLabelsOutsidePolygons, &QAbstractButton::toggled, this, &QgsTextFormatWidget::updatePlacementWidgets );
265+
connect( mAllowOutsidePolygonsDDBtn, &QgsPropertyOverrideButton::changed, this, &QgsTextFormatWidget::updatePlacementWidgets );
264266

265267
// setup point placement button group
266268
mPlacePointBtnGrp = new QButtonGroup( this );
@@ -1326,6 +1328,10 @@ void QgsTextFormatWidget::updatePlacementWidgets()
13261328
// TODO: enable mMultiLinesFrame when supported for curved labels
13271329
enableMultiLinesFrame = !isCurved;
13281330
}
1331+
else if ( curWdgt == pagePolygon && ( radPolygonOutside->isChecked() || mCheckAllowLabelsOutsidePolygons->isChecked() || mAllowOutsidePolygonsDDBtn->isActive() ) )
1332+
{
1333+
showDistanceFrame = true;
1334+
}
13291335

13301336
mPlacementLineFrame->setVisible( showLineFrame );
13311337
mPlacementPolygonFrame->setVisible( showPolygonPlacementOptions );

0 commit comments

Comments
 (0)
Please sign in to comment.