Use the "Binding on ..." syntax whenever possible

This commit is contained in:
miruka 2019-12-11 13:03:33 -04:00
parent e694f1739b
commit c2b7b458f9
5 changed files with 6 additions and 21 deletions

View File

@ -1,4 +1,4 @@
- binding on ...
- invite keybind & context menu
- better cancel for all boxes
- Media
@ -72,11 +72,6 @@
- In join room page, show the matching room's avatar when typing
- In find someone page, show the matching user's avatar when typing
- Inviting members to a room
- Make invite icon blink if there's no one but ourself in the room,
but never do it again once the user hovered it long enough to show
tooltip or clicked on it once
- Combine events so they take less space
- After combining is implemented, no need to hide profile changes anymore.
- Replies

View File

@ -28,16 +28,12 @@ RadialBar {
theme.controls.circleProgressBar.indeterminateSpan
Binding {
target: bar;
property: "value";
Binding on value {
value: bar.to * bar.indeterminateSpan
when: bar.indeterminate
}
Binding {
target: bar
property: "showText"
Binding on showText {
value: false
when: bar.indeterminate
}

View File

@ -130,9 +130,7 @@ HColumnLayout {
}
}
Binding {
target: timeSlider
property: "value"
Binding on value {
value: boundPosition
when: ! timeSlider.pressed
}

View File

@ -17,9 +17,7 @@ HLabel {
radius: theme.radius
}
Binding {
target: bubble
property: "visible"
Binding on visible {
value: false
when: ! Boolean(bubble.text)
}

View File

@ -28,9 +28,7 @@ HDrawer {
Behavior on opacity { HOpacityAnimator {} }
Binding {
target: mainPane
property: "visible"
Binding on visible {
value: false
when: ! mainUI.accountsPresent
}