Make sure the file delegate label fill the width and elide if needed.
This commit is contained in:
committed by
Tobias Fella
parent
f10805dddb
commit
918e9e492a
@@ -110,14 +110,18 @@ TimelineContainer {
|
|||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
QQC2.Label {
|
QQC2.Label {
|
||||||
|
Layout.fillWidth: true
|
||||||
text: model.display
|
text: model.display
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
QQC2.Label {
|
QQC2.Label {
|
||||||
id: sizeLabel
|
id: sizeLabel
|
||||||
|
Layout.fillWidth: true
|
||||||
text: Controller.formatByteSize(content.info ? content.info.size : 0)
|
text: Controller.formatByteSize(content.info ? content.info.size : 0)
|
||||||
opacity: 0.7
|
opacity: 0.7
|
||||||
|
elide: Text.ElideRight
|
||||||
|
maximumLineCount: 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user