[SailfishDevel] CoverBackground onStateChanged not triggered

Peter Pykäläinen peter.pykalainen at gmail.com
Tue Oct 14 21:53:02 UTC 2014


Thank you so much!
Will test it.


// Peter Pykäläinen

On 15 October 2014 00:30, Basil Semuonov <basil.semuonov at gmail.com> 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 <
> peter.pykalainen at gmail.com> wrote:
>
>> 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 running: state===Cover.Active the timer runs
>> when the cover is active and stops when it's not.
>>
>> I'd really like to update some stuff on my cover everytime it comes
>> visible.
>>
>> // Peter Pykäläinen
>>
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to
>> devel-unsubscribe at lists.sailfishos.org
>>
>
>
>
> --
> Semuonov Basil
> --- Line of cut --- Linux everywhere...
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscribe at lists.sailfishos.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20141015/c3e0d0e6/attachment-0001.html>


More information about the Devel mailing list