Fix document path truncation
This commit is contained in:
parent
98a8928c33
commit
e6d3d92241
1 changed files with 11 additions and 5 deletions
|
@ -281,14 +281,20 @@ Page {
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
id: fileLabel
|
id: fileLabel
|
||||||
width: parent.width
|
width: parent.width-2*Theme.paddingLarge
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.topMargin: Theme.paddingLarge
|
anchors {
|
||||||
leftPadding: Theme.paddingMedium
|
top: parent.top
|
||||||
color: Theme.highlightColor
|
topMargin: Theme.paddingLarge
|
||||||
|
horizontalCenter: parent.horizontalCenter
|
||||||
|
}
|
||||||
|
|
||||||
|
horizontalAlignment: contentWidth > width ? Text.AlignRight : Text.AlignHCenter
|
||||||
|
truncationMode: TruncationMode.Fade
|
||||||
text: selectedFile != "" ? selectedFile : qsTr("No file selected")
|
text: selectedFile != "" ? selectedFile : qsTr("No file selected")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
|
|
Loading…
Reference in a new issue