Skip to content
Permalink
Browse files

Hide some labeling widgets which have no effect for text formats

when editing text format properties

Avoids showing settings which don't change anything
  • Loading branch information
nyalldawson committed Jul 27, 2020
1 parent 3777030 commit 56dcb431c6cd50b4174bac837117ddbddf0d8d06
Showing with 146 additions and 161 deletions.
  1. +13 −1 src/gui/qgstextformatwidget.cpp
  2. +133 −160 src/ui/qgstextformatwidgetbase.ui
@@ -584,7 +584,19 @@ void QgsTextFormatWidget::setWidgetMode( QgsTextFormatWidget::Mode mode )
mFormatNumFrame->hide();
mFormatNumChkBx->hide();
mFormatNumDDBtn->hide();
mSubstitutionsFrame->hide();
mCheckBoxSubstituteText->hide();
mToolButtonConfigureSubstitutes->hide();
mLabelWrapOnCharacter->hide();
wrapCharacterEdit->hide();
mWrapCharDDBtn->hide();
mLabelWrapLinesTo->hide();
mAutoWrapLengthSpinBox->hide();
mAutoWrapLengthDDBtn->hide();
mAutoWrapTypeComboBox->hide();
mFontMultiLineLabel->hide();
mFontMultiLineAlignComboBox->hide();
mFontMultiLineAlignDDBtn->hide();

mTextOrientationComboBox->removeItem( mTextOrientationComboBox->findData( QgsTextFormat::RotationBasedOrientation ) );
break;
}

0 comments on commit 56dcb43

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