taskmanager: Update rootIndex when visibility is changed
When there are two grouped tasks named A and B, and the position of B is swapped with A (by dragging B), user can still see old items of A in the textual list of grouped tasks B. This is because in the original binding expression, both visualParent and itemIndex are not changed, so QML will not re-evaluate the expression. To only update rootIndex when `groupDialog.visible` is true, `Binding.when` is used, and `Binding.RestoreNone` is to avoid sudden changes in height. BUG: 446108
-
Developer
@fusionfuture Can I kindly ask you to add a boilerplate comment when doing this QtQml magic?
// Deliberately imported after QtQuick to avoid missing restoreMode property in Binding. Fix in Qt 6.
-
Author Developer
Eh, it seems too long. What about
// TODO: Remove in Qt 6
? -
Developer
This is what Qt uses upstream, so it makes sense to just stick with it. I'm pushing it to master, alight?
-
Author Developer
Fine
Please register or sign in to comment