Commit 78f4786a authored by Noah Davis's avatar Noah Davis 🌵
Browse files

Use binding instead of onRunningChanged

parent 851fca3a
......@@ -88,7 +88,8 @@ AbstractDelegate {
}
PlasmaComponents.Label {
id: commentLabel
visible: false
// keeps commentLabel from affecting the vertical center of label when not selected
visible: text.length > 0 && (toSelectedTransition.running || toNormalTransition.running || delegate.isCurrent)
Layout.fillWidth: true
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
......@@ -158,10 +159,7 @@ AbstractDelegate {
]
transitions: [
Transition {
onRunningChanged: {
// keeps commentLabel from affecting the vertical center of label when not selected
commentLabel.visible = delegate.comment.length > 0 && (running || delegate.isCurrent)
}
id: toSelectedTransition
to: "selected"
ParallelAnimation {
XAnimator {
......@@ -200,10 +198,7 @@ AbstractDelegate {
}
},
Transition {
onRunningChanged: {
// keeps commentLabel from affecting the vertical center of label when not selected
commentLabel.visible = delegate.comment.length > 0 && (running || delegate.isCurrent)
}
id: toNormalTransition
to: "normal"
ParallelAnimation {
XAnimator {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment