Thanks Martin, your trick works actually really well. I had to create another timer for the Cover but that is no issue.
// Peter Pykäläinen On 29 April 2014 07:23, <peter.pykalai...@gmail.com> wrote: > Thank you. > Will have a look at that. > > martin.gri...@gmail.com kirjoitti Tue Apr 29 2014 07:12:45 GMT+0300 > (EEST): > > Hi, > > > > Am Mon Apr 28 2014 23:11:58 GMT+0200 (CEST) schrieb Peter Pykäläinen: > > > Thank you for you response. > > > > > > Unfortunately no, since I need to show info on the cover. > > > > > > > I think, for just showing info on the cover, giving the CPU sleep > deprivation is overkill. > > > > You can make the timer's running property depend on > Qt.application.active (app is not minimized and screen is not locked) and > the Cover.Active signal of the CoverBackground element (Cover is visible > and screen is not locked). > > I'm watching these two properties in Tidings, for example, to keep the > elapsed time labels up to date. > > > > Martin > > > > -- > > Gesendet von meinem Jolla > > _______________________________________________ > > SailfishOS.org Devel mailing lis > > -- > > // Peter Pykäläinen > Lähetetty Jollastani >
_______________________________________________ SailfishOS.org Devel mailing list