fix some label layout issues
This commit is contained in:
parent
bca1ea4f1d
commit
6bd16ab166
1 changed files with 4 additions and 2 deletions
|
@ -90,12 +90,13 @@ KWin.Switcher {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: label
|
id: label
|
||||||
spacing: 4
|
spacing: 4
|
||||||
property int maximumWidth: thumbnailListView.delegateWidth
|
|
||||||
Layout.maximumWidth: maximumWidth
|
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
bottom: parent.bottom
|
bottom: parent.bottom
|
||||||
leftMargin: hoverItem.margins.left
|
leftMargin: hoverItem.margins.left
|
||||||
|
rightMargin: hoverItem.margins.right
|
||||||
bottomMargin: hoverItem.margins.bottom
|
bottomMargin: hoverItem.margins.bottom
|
||||||
}
|
}
|
||||||
QIconItem {
|
QIconItem {
|
||||||
|
@ -110,6 +111,7 @@ KWin.Switcher {
|
||||||
PlasmaComponents.Label {
|
PlasmaComponents.Label {
|
||||||
text: model.caption
|
text: model.caption
|
||||||
elide: Text.ElideMiddle
|
elide: Text.ElideMiddle
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.maximumWidth: label.maximumWidth - iconItem.iconSize - label.spacing * 2
|
Layout.maximumWidth: label.maximumWidth - iconItem.iconSize - label.spacing * 2
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue