Skip to content
Permalink
Browse files
Use QgsCodeEditorHTML
  • Loading branch information
mhugent committed Jul 4, 2021
1 parent 220d5ec commit 38fa7ee393e1beb3fb5b9039a590318168452847
Showing with 10 additions and 3 deletions.
  1. +2 −2 src/app/qgshtmlannotationdialog.cpp
  2. +8 −1 src/ui/qgsformannotationdialogbase.ui
@@ -50,7 +50,7 @@ QgsHtmlAnnotationDialog::QgsHtmlAnnotationDialog( QgsMapCanvasAnnotationItem *it
}
else
{
mHtmlSourceTextEdit->setPlainText( annotation->htmlSource() );
mHtmlSourceTextEdit->setText( annotation->htmlSource() );
mSourceRadioButton->setChecked( true );
}
}
@@ -82,7 +82,7 @@ void QgsHtmlAnnotationDialog::applySettingsToItem()
}
else
{
annotation->setHtmlSource( mHtmlSourceTextEdit->toPlainText() );
annotation->setHtmlSource( mHtmlSourceTextEdit->text() );
}
mItem->update();
}
@@ -55,7 +55,7 @@
</widget>
</item>
<item row="2" column="0">
<widget class="QPlainTextEdit" name="mHtmlSourceTextEdit"/>
<widget class="QgsCodeEditorHTML" name="mHtmlSourceTextEdit"/>
</item>
<item row="1" column="0">
<widget class="QRadioButton" name="mSourceRadioButton">
@@ -101,4 +101,11 @@
</hints>
</connection>
</connections>
<customwidgets>
<customwidget>
<class>QgsCodeEditorHTML</class>
<extends>QWidget</extends>
<header>qgscodeeditorhtml.h</header>
</customwidget>
</customwidgets>
</ui>

0 comments on commit 38fa7ee

Please sign in to comment.