Skip to content
Permalink
Browse files

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 Apr 30, 2020
1 parent e10c9f3 commit af9bf7e944a7c3dc4155093b42a6fea23140a461
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/qgstextformatwidget.cpp
@@ -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 );
@@ -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 );

0 comments on commit af9bf7e

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