QmlDesigner: Disable rich text for TextInput

TextInput does not support rich text.

Task-number: QDS-2769
Change-Id: I6ae9862f65c866cce2975f7f53cb2683f41f0d9a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Thomas Hartmann
2020-11-30 17:28:37 +01:00
parent 68e20abfef
commit 35380afb93
3 changed files with 6 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ Column {
StandardTextSection { StandardTextSection {
showVerticalAlignment: true showVerticalAlignment: true
showFormatProperty: true showFormatProperty: true
richTextEditorAvailable: true
} }
Section { Section {

View File

@@ -37,6 +37,7 @@ Column {
showElide: true showElide: true
showFontSizeMode: true showFontSizeMode: true
showLineHeight: true showLineHeight: true
richTextEditorAvailable: true
} }
Section { Section {

View File

@@ -40,6 +40,8 @@ Section {
property bool showFormatProperty: false property bool showFormatProperty: false
property bool showFontSizeMode: false property bool showFontSizeMode: false
property bool showLineHeight: false property bool showLineHeight: false
property bool richTextEditorAvailable: false
id: root
SectionLayout { SectionLayout {
@@ -61,9 +63,10 @@ Section {
onClicked: { onClicked: {
richTextDialogLoader.show() richTextDialogLoader.show()
} }
visible: root.richTextEditorAvailable
} }
RichTextEditor{ RichTextEditor {
onRejected: { onRejected: {
hideWidget() hideWidget()
} }