QmlDesigner.PropertyEditor: Fix TextEditSpecifics

I moved the property format into Text section, because
having two sections with even the same name was confusing.
The format property also is not really related to "Text Input".

Since the distinction between plain and rich text is very important,
it makes sense to have this property in the first section.

Change-Id: I4d66ed4a24fe0d99d394c17d149c830db2c6d3b8
Task-number: QTCREATORBUG-12452
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
This commit is contained in:
Thomas Hartmann
2014-06-18 14:15:56 +02:00
parent 672e7042cb
commit 95bcd0883f
2 changed files with 14 additions and 14 deletions

View File

@@ -50,6 +50,7 @@ Section {
property bool showIsWrapping: false
property bool showVerticalAlignment: false
property bool useLineEdit: true
property bool showFormatProperty: false
SectionLayout {
columns: 2
@@ -92,5 +93,17 @@ Section {
AligmentVerticalButtons {
visible: showVerticalAlignment
}
Label {
visible: showFormatProperty
text: qsTr("Format")
}
ComboBox {
visible: showFormatProperty
model: ["PlainText", "RichText", "AutoText"]
backendValue: backendValues.textFormat
Layout.fillWidth: true
}
}
}

View File

@@ -38,6 +38,7 @@ Column {
StandardTextSection {
showIsWrapping: true
useLineEdit: true
showFormatProperty: true
}
Section {
@@ -69,20 +70,6 @@ Column {
showStyle: false
}
Section {
caption: qsTr("Text Input")
SectionLayout {
Label {
text: qsTr("Format")
}
ComboBox {
model: ["PlainText", "RichText", "AutoText"]
backendValue: backendValues.textFormat
Layout.fillWidth: true
}
}
}
TextInputSection {
}
}