Fix document path truncation

This commit is contained in:
Anton Thomasson 2020-08-09 15:29:50 +02:00
parent 98a8928c33
commit e6d3d92241

View file

@ -281,14 +281,20 @@ Page {
Label {
id: fileLabel
width: parent.width
anchors.top: parent.top
anchors.topMargin: Theme.paddingLarge
leftPadding: Theme.paddingMedium
color: Theme.highlightColor
width: parent.width-2*Theme.paddingLarge
anchors {
top: parent.top
topMargin: Theme.paddingLarge
horizontalCenter: parent.horizontalCenter
}
horizontalAlignment: contentWidth > width ? Text.AlignRight : Text.AlignHCenter
truncationMode: TruncationMode.Fade
text: selectedFile != "" ? selectedFile : qsTr("No file selected")
}
Row {
width: parent.width
anchors.bottom: parent.bottom