Undo all buttons in activities that have undo one buttons
Closed, ResolvedPublic

Description

This is a spin off of T13715.

My kids would benefit from an undo all button in the chess activity. They like to "replay" their game for me with commentary. Because there is no undo all button now, they have to click the undo button many times. I think they would appreciate an undo all button.

Quoting T13715#241865

We can't add a "undo all" (at least for this release)...

I don't think there is any reason to rush this feature. It can wait.

This is a very specific feature request, but I can understand the usecase.

I prefer to not add more buttons in the activity to not make it more crowded visually, but instead of adding one more button, I think we can do something like: press the undo button for 5 seconds opens a dialog asking if user wants to undo everything from the beginning.

I tried to implement this button using onPressAndHold property. We need Qt.Controls ateast 2.0 for using this property. However, our project is still running on Qt.Conrols 1.5. I have tried other alternatives but can't find any.

what about a timer you activate when you click on the button (onPress signal) and when you release the button (onRelease), you get the elapsed time and if it is above 5 seconds, you do the action?

onReleased property was absent for GCButton. So I made a mouse area inside the button.

Merge request - https://invent.kde.org/education/gcompris/-/merge_requests/91

jjazeix closed this task as Resolved.Feb 5 2022, 10:16 AM
jjazeix moved this task from Need review to Done on the GCompris: Improvements board.
jjazeix claimed this task.
jjazeix reassigned this task from jjazeix to samarthraj11.