QmlDesigner: Adding elide property to text

Task-number: QTCREATORBUG-13455
Change-Id: I7e333840ccf2b7dde85f25f60392158167798c54
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2016-10-12 09:54:07 +02:00
committed by Tim Jenssen
parent c4417c49c7
commit 2c9fb06b97
2 changed files with 15 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ Section {
caption: qsTr("Text")
property bool showIsWrapping: false
property bool showElide: false
property bool showVerticalAlignment: false
property bool useLineEdit: true
property bool showFormatProperty: false
@@ -62,6 +63,19 @@ Section {
model: ["NoWrap", "WordWrap", "WrapAnywhere", "WrapAtWordBoundaryOrAnywhere"]
}
Label {
visible: showElide
text: qsTr("Elide")
}
ComboBox {
visible: showElide
Layout.fillWidth: true
backendValue: backendValues.elide
scope: "Text"
model: ["ElideNone", "ElideLeft", "ElideMiddle", "ElideRight"]
}
Label {
text: qsTr("Alignment")
}

View File

@@ -36,6 +36,7 @@ Column {
showIsWrapping: true
showVerticalAlignment: true
showFormatProperty: true
showElide: true
}
Section {