Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 56dcb43
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 161 deletions.
14 changes: 13 additions & 1 deletion src/gui/qgstextformatwidget.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 56dcb43

Please sign in to comment.