Fix power item display
This commit is contained in:
parent
08735bb2c9
commit
d9c4d9818b
1 changed files with 7 additions and 6 deletions
|
|
@ -70,7 +70,8 @@ Item
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
x: itemRoot.width + textBoxMargin
|
id: textBackground
|
||||||
|
x: itemRoot.height + textBoxMargin
|
||||||
width: parent.width - x
|
width: parent.width - x
|
||||||
height: itemRoot.height
|
height: itemRoot.height
|
||||||
color: ( hover ? colors.textBgHover : colors.textBg )
|
color: ( hover ? colors.textBgHover : colors.textBg )
|
||||||
|
|
@ -81,19 +82,19 @@ Item
|
||||||
id: descriptionLabel
|
id: descriptionLabel
|
||||||
text: itemRoot.title
|
text: itemRoot.title
|
||||||
color: ( hover ? colors.textHover : colors.text )
|
color: ( hover ? colors.textHover : colors.text )
|
||||||
width: parent.width - descriptionLabel.height + 10 - 2 - 24
|
width: parent.width - x - textBoxPaddingRight
|
||||||
|
|
||||||
font: fonts.listItemMed
|
font: fonts.listItemMed
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
||||||
x: descriptionLabel.height + 10 + 12
|
x: textBackground.x + textBoxPaddingLeft
|
||||||
y: 5
|
y: textBoxPaddingTop
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea
|
MouseArea
|
||||||
{
|
{
|
||||||
width: descriptionLabel.x + descriptionLabel.width
|
width: itemRoot.width
|
||||||
height: descriptionLabel.height + 10
|
height: itemRoot.height
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
|
||||||
onClicked: itemRoot.clicked()
|
onClicked: itemRoot.clicked()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue