Questions about models in NotificationDelegate.qml

Christoph Feck christoph at maxiom.de
Tue Sep 3 21:00:06 UTC 2013


On Tuesday 27 August 2013 13:57:00 Christoph Feck wrote:
> Hi,
> 
> Looking at the NotificationDelegate.qml file, I see several lines
> that say "notificationsModel.remove(index)", fired from timers,
> running animations etc.
> 
> Do QML models automatically make sure the index is still valid, in
> other words, when e.g. the timer fires delayed, and another item
> has been added or removed in the meantime, is the index updated
> accordingly? Or worse, if the item has been removed for other
> reasons, is the timer/animation automatically cancelled so that
> remove() is not called again?
> 
> Christoph Feck (kdepepo)

Anyone? :)


More information about the Plasma-devel mailing list