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 { 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