[SailfishDevel] CoverBackground onStateChanged not triggered
Basil Semuonov
basil.semuonov at gmail.com
Tue Oct 14 21:30:06 UTC 2014
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...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20141015/a4f7acea/attachment.html>
More information about the Devel
mailing list