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 {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue