plasmoid: Fix width of detail items
So the alignment and text eliding actually has effect.
This commit is contained in:
parent
6c6830936d
commit
a4c2074012
|
@ -77,6 +77,7 @@ Item {
|
||||||
model: plasmoid.nativeInterface.devModel
|
model: plasmoid.nativeInterface.devModel
|
||||||
rootIndex: detailsView.model.modelIndex(index)
|
rootIndex: detailsView.model.modelIndex(index)
|
||||||
delegate: DetailItem {
|
delegate: DetailItem {
|
||||||
|
width: detailsView.width
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,6 +120,7 @@ ColumnLayout {
|
||||||
model: plasmoid.nativeInterface.dirModel
|
model: plasmoid.nativeInterface.dirModel
|
||||||
rootIndex: detailsView.model.modelIndex(sourceIndex)
|
rootIndex: detailsView.model.modelIndex(sourceIndex)
|
||||||
delegate: DetailItem {
|
delegate: DetailItem {
|
||||||
|
width: detailsView.width
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,7 @@ Item {
|
||||||
model: plasmoid.nativeInterface.downloadModel
|
model: plasmoid.nativeInterface.downloadModel
|
||||||
rootIndex: detailsView.model.modelIndex(index)
|
rootIndex: detailsView.model.modelIndex(index)
|
||||||
delegate: RowLayout {
|
delegate: RowLayout {
|
||||||
width: parent.width
|
width: detailsView.width
|
||||||
|
|
||||||
PlasmaCore.IconItem {
|
PlasmaCore.IconItem {
|
||||||
Layout.preferredWidth: units.iconSizes.medium
|
Layout.preferredWidth: units.iconSizes.medium
|
||||||
|
|
Loading…
Reference in New Issue