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 {
|
||||
showVerticalAlignment: true
|
||||
showFormatProperty: true
|
||||
richTextEditorAvailable: true
|
||||
}
|
||||
|
||||
Section {
|
||||
|
@@ -37,6 +37,7 @@ Column {
|
||||
showElide: true
|
||||
showFontSizeMode: true
|
||||
showLineHeight: true
|
||||
richTextEditorAvailable: true
|
||||
}
|
||||
|
||||
Section {
|
||||
|
@@ -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,9 +63,10 @@ Section {
|
||||
onClicked: {
|
||||
richTextDialogLoader.show()
|
||||
}
|
||||
visible: root.richTextEditorAvailable
|
||||
}
|
||||
|
||||
RichTextEditor{
|
||||
RichTextEditor {
|
||||
onRejected: {
|
||||
hideWidget()
|
||||
}
|
||||
|
Reference in New Issue
Block a user