Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Show distance controls when labeling outside polygon modes are enabled
Because these impact how far outside the polygons the labels will be placed
  • Loading branch information
nyalldawson committed May 3, 2020
1 parent e10c9f3 commit af9bf7e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/qgstextformatwidget.cpp
Expand Up @@ -261,6 +261,8 @@ void QgsTextFormatWidget::initWidget()
// post updatePlacementWidgets() connections
connect( chkLineAbove, &QAbstractButton::toggled, this, &QgsTextFormatWidget::updatePlacementWidgets );
connect( chkLineBelow, &QAbstractButton::toggled, this, &QgsTextFormatWidget::updatePlacementWidgets );
connect( mCheckAllowLabelsOutsidePolygons, &QAbstractButton::toggled, this, &QgsTextFormatWidget::updatePlacementWidgets );
connect( mAllowOutsidePolygonsDDBtn, &QgsPropertyOverrideButton::changed, this, &QgsTextFormatWidget::updatePlacementWidgets );

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

mPlacementLineFrame->setVisible( showLineFrame );
mPlacementPolygonFrame->setVisible( showPolygonPlacementOptions );
Expand Down

0 comments on commit af9bf7e

Please sign in to comment.