Add deselecting-item
callback to StandardListView
#5933
Labels
a:widgets
Implementation of widgets (from std-widgets.slint) and their styles (mF,bS)
enhancement
New feature or request
With
StandardListView
'scurrent-item-changed
callback, you can currently only be informed of the new selected item after the fact.As described in #6369, I'm saving widgets' content in my app after user actions subsided for a short duration (using a
Timer
). When the list item changes, I have to save immediately, for which I would call the one-shotTimer
'sprepone()
function as described in the linked issue.For this all to integrate as best as possible,
StandardListView
would need to get an additional callbackdeselecting-item
that would be called beforecurrent-item
changes, and only if the item is guaranteed to be deselected. This way, I'd callTimer
'sprepone()
indeselecting-item
, which would callTimer
'striggered
(if theTimer
is running), which would readStandardListView
'scurrent-item
to save the widgets' content for this list index.Perhaps this should also be implemented for
StandardTableView
.The text was updated successfully, but these errors were encountered: