forked from qt-creator/qt-creator
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:
@@ -34,6 +34,7 @@ Column {
|
|||||||
StandardTextSection {
|
StandardTextSection {
|
||||||
showVerticalAlignment: true
|
showVerticalAlignment: true
|
||||||
showFormatProperty: true
|
showFormatProperty: true
|
||||||
|
richTextEditorAvailable: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Section {
|
Section {
|
||||||
|
@@ -37,6 +37,7 @@ Column {
|
|||||||
showElide: true
|
showElide: true
|
||||||
showFontSizeMode: true
|
showFontSizeMode: true
|
||||||
showLineHeight: true
|
showLineHeight: true
|
||||||
|
richTextEditorAvailable: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Section {
|
Section {
|
||||||
|
@@ -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,6 +63,7 @@ Section {
|
|||||||
onClicked: {
|
onClicked: {
|
||||||
richTextDialogLoader.show()
|
richTextDialogLoader.show()
|
||||||
}
|
}
|
||||||
|
visible: root.richTextEditorAvailable
|
||||||
}
|
}
|
||||||
|
|
||||||
RichTextEditor {
|
RichTextEditor {
|
||||||
|
Reference in New Issue
Block a user