Use show instead of draw

This commit is contained in:
Nyall Dawson 2019-07-21 16:38:39 +10:00
parent 2345bf17ad
commit a70b54fa31
2 changed files with 4 additions and 4 deletions

View File

@ -1601,7 +1601,7 @@ QgsLayoutMapLabelingWidget::QgsLayoutMapLabelingWidget( QgsLayoutItemMap *map )
connect( mLabelBoundaryUnitsCombo, &QgsLayoutUnitsComboBox::changed, this, &QgsLayoutMapLabelingWidget::labelMarginUnitsChanged );
connect( mLabelBoundarySpinBox, static_cast < void ( QDoubleSpinBox::* )( double ) > ( &QDoubleSpinBox::valueChanged ), this, &QgsLayoutMapLabelingWidget::labelMarginChanged );
connect( mShowPartialLabelsCheckBox, &QCheckBox::toggled, this, &QgsLayoutMapLabelingWidget::showPartialsToggled );
connect( mDrawUnplacedCheckBox, &QCheckBox::toggled, this, &QgsLayoutMapLabelingWidget::showUnplacedToggled );
connect( mShowUnplacedCheckBox, &QCheckBox::toggled, this, &QgsLayoutMapLabelingWidget::showUnplacedToggled );
registerDataDefinedButton( mLabelMarginDDBtn, QgsLayoutObject::MapLabelMargin );
@ -1635,7 +1635,7 @@ void QgsLayoutMapLabelingWidget::updateGuiElements()
whileBlocking( mLabelBoundarySpinBox )->setValue( mMapItem->labelMargin().length() );
whileBlocking( mLabelBoundaryUnitsCombo )->setUnit( mMapItem->labelMargin().units() );
whileBlocking( mShowPartialLabelsCheckBox )->setChecked( mMapItem->mapFlags() & QgsLayoutItemMap::ShowPartialLabels );
whileBlocking( mDrawUnplacedCheckBox )->setChecked( mMapItem->mapFlags() & QgsLayoutItemMap::ShowUnplacedLabels );
whileBlocking( mShowUnplacedCheckBox )->setChecked( mMapItem->mapFlags() & QgsLayoutItemMap::ShowUnplacedLabels );
if ( mBlockingItemsListView->model() )
{

View File

@ -123,9 +123,9 @@
</widget>
</item>
<item>
<widget class="QCheckBox" name="mDrawUnplacedCheckBox">
<widget class="QCheckBox" name="mShowUnplacedCheckBox">
<property name="text">
<string>Draw unplaced labels</string>
<string>Show unplaced labels</string>
</property>
</widget>
</item>