plasmoid: Fix width of detail items

So the alignment and text eliding actually has effect.
This commit is contained in:
Martchus 2019-03-19 23:05:31 +01:00
parent 6c6830936d
commit a4c2074012
3 changed files with 3 additions and 1 deletions

View File

@ -77,6 +77,7 @@ Item {
model: plasmoid.nativeInterface.devModel
rootIndex: detailsView.model.modelIndex(index)
delegate: DetailItem {
width: detailsView.width
}
}
}

View File

@ -120,6 +120,7 @@ ColumnLayout {
model: plasmoid.nativeInterface.dirModel
rootIndex: detailsView.model.modelIndex(sourceIndex)
delegate: DetailItem {
width: detailsView.width
}
}
}

View File

@ -80,7 +80,7 @@ Item {
model: plasmoid.nativeInterface.downloadModel
rootIndex: detailsView.model.modelIndex(index)
delegate: RowLayout {
width: parent.width
width: detailsView.width
PlasmaCore.IconItem {
Layout.preferredWidth: units.iconSizes.medium