Fix EventImageTextBubble shown when no text
This commit is contained in:
parent
c5a8be9ef9
commit
df0020e62c
|
@ -2,7 +2,7 @@ import QtQuick 2.12
|
||||||
import "../../Base"
|
import "../../Base"
|
||||||
|
|
||||||
HLabel {
|
HLabel {
|
||||||
visible: Boolean(text)
|
id: bubble
|
||||||
anchors.margins: theme.spacing / 4
|
anchors.margins: theme.spacing / 4
|
||||||
|
|
||||||
topPadding: theme.spacing / 2
|
topPadding: theme.spacing / 2
|
||||||
|
@ -16,4 +16,11 @@ HLabel {
|
||||||
color: Qt.hsla(0, 0, 0, 0.7)
|
color: Qt.hsla(0, 0, 0, 0.7)
|
||||||
radius: theme.radius
|
radius: theme.radius
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Binding {
|
||||||
|
target: bubble
|
||||||
|
property: "visible"
|
||||||
|
value: false
|
||||||
|
when: ! Boolean(bubble.text)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user