Re: [SailfishDevel] CoverBackground onStateChanged not triggered

2014-10-14 Thread Peter Pykäläinen
Thank you so much! Will test it. // Peter Pykäläinen On 15 October 2014 00:30, Basil Semuonov wrote: > You should use 'status' property, not 'state'. > > > https://sailfishos.org/sailfish-silica/qml-sailfishsilica-cover.html#status-prop > > On Tue, Oct 14, 2014 at 11:28 PM, Peter Pykäläinen <

Re: [SailfishDevel] CoverBackground onStateChanged not triggered

2014-10-14 Thread Basil Semuonov
You should use 'status' property, not 'state'. https://sailfishos.org/sailfish-silica/qml-sailfishsilica-cover.html#status-prop On Tue, Oct 14, 2014 at 11:28 PM, Peter Pykäläinen < peter.pykalai...@gmail.com> wrote: > Hi, > > any idea why the CoverBackgrounds onStateChanged does not fire in this

[SailfishDevel] CoverBackground onStateChanged not triggered

2014-10-14 Thread Peter Pykäläinen
Hi, any idea why the CoverBackgrounds onStateChanged does not fire in this code sample: CoverBackground { onStateChanged: { console.debug("--> Cover state = " + state); if (state === Cover.Active) console.debug("--> Do stuff!!!"); } If I create a timer with r

Re: [SailfishDevel] ListView vs Repeater

2014-10-14 Thread Krisztian Olah
Hi Oleksii, After writing the code I realized that RemorseItem by default excecutes its executable onDestruction() when its timer is on. I am not quite sure why it didn't work the same way before or why I precieved it differently. Thanks again Kris On 14 October 2014 08:46, Oleksi

Re: [SailfishDevel] ListView vs Repeater

2014-10-14 Thread Oleksii Serdiuk
Hi Kris, Aha! So what you want is: 1. User selects to remove an item in the ListView. 2. RemorseItem activates so user can cancel the deletion. 3. When timer times out, the item is actually deleted from the model. And, in this case, 3. breaks when user scrolls the item away before timeout: deleg