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 {
showVerticalAlignment: true
showFormatProperty: true
richTextEditorAvailable: true
}
Section {

View File

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

View File

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