Skip to content
Permalink
Browse files

HTML formatting checkbox

  • Loading branch information
nyalldawson committed May 8, 2020
1 parent df88d42 commit 2cbea02ea808d7522cfe4d57e56022dc5cc7b0c8
Showing with 205 additions and 189 deletions.
  1. +4 −1 src/gui/qgstextformatwidget.cpp
  2. +199 −188 src/ui/qgstextformatwidgetbase.ui
  3. +2 −0 tests/src/python/test_qgstextformatwidget.py
@@ -477,7 +477,8 @@ void QgsTextFormatWidget::initWidget()
<< mMaskJoinStyleComboBox
<< mMaskBufferSizeSpinBox
<< mMaskOpacityWidget
<< mCheckAllowLabelsOutsidePolygons;
<< mCheckAllowLabelsOutsidePolygons
<< mHtmlFormattingCheckBox;

connectValueChanged( widgets, SLOT( updatePreview() ) );

@@ -887,6 +888,7 @@ void QgsTextFormatWidget::updateWidgetForFormat( const QgsTextFormat &format )
mTextOpacityWidget->setOpacity( format.opacity() );
comboBlendMode->setBlendMode( format.blendMode() );
mTextOrientationComboBox->setCurrentIndex( mTextOrientationComboBox->findData( format.orientation() ) );
mHtmlFormattingCheckBox->setChecked( format.allowHtmlFormatting() );

mFontWordSpacingSpinBox->setValue( format.font().wordSpacing() );
mFontLetterSpacingSpinBox->setValue( format.font().letterSpacing() );
@@ -1012,6 +1014,7 @@ QgsTextFormat QgsTextFormatWidget::format( bool includeDataDefinedProperties ) c
format.setLineHeight( mFontLineHeightSpinBox->value() );
format.setPreviewBackgroundColor( mPreviewBackgroundColor );
format.setOrientation( static_cast< QgsTextFormat::TextOrientation >( mTextOrientationComboBox->currentData().toInt() ) );
format.setAllowHtmlFormatting( mHtmlFormattingCheckBox->isChecked( ) );

// buffer
QgsTextBufferSettings buffer;

0 comments on commit 2cbea02

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