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")
|
caption: qsTr("Text")
|
||||||
|
|
||||||
property bool showIsWrapping: false
|
property bool showIsWrapping: false
|
||||||
|
property bool showElide: false
|
||||||
property bool showVerticalAlignment: false
|
property bool showVerticalAlignment: false
|
||||||
property bool useLineEdit: true
|
property bool useLineEdit: true
|
||||||
property bool showFormatProperty: false
|
property bool showFormatProperty: false
|
||||||
@@ -62,6 +63,19 @@ Section {
|
|||||||
model: ["NoWrap", "WordWrap", "WrapAnywhere", "WrapAtWordBoundaryOrAnywhere"]
|
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 {
|
Label {
|
||||||
text: qsTr("Alignment")
|
text: qsTr("Alignment")
|
||||||
}
|
}
|
||||||
|
@@ -36,6 +36,7 @@ Column {
|
|||||||
showIsWrapping: true
|
showIsWrapping: true
|
||||||
showVerticalAlignment: true
|
showVerticalAlignment: true
|
||||||
showFormatProperty: true
|
showFormatProperty: true
|
||||||
|
showElide: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Section {
|
Section {
|
||||||
|
Reference in New Issue
Block a user