forked from qt-creator/qt-creator
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:
committed by
Tim Jenssen
parent
c4417c49c7
commit
2c9fb06b97
@@ -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")
|
||||
}
|
||||
|
@@ -36,6 +36,7 @@ Column {
|
||||
showIsWrapping: true
|
||||
showVerticalAlignment: true
|
||||
showFormatProperty: true
|
||||
showElide: true
|
||||
}
|
||||
|
||||
Section {
|
||||
|
Reference in New Issue
Block a user