[SailfishDevel] Make cover page equal to First page
Joona Petrell
joona.petrell at jollamobile.com
Fri Jun 14 05:26:22 UTC 2013
Hi João,
Application cover should have it's own UI, because it has different layout dimensions than the full-screen application page, different background (often CoverBackground) and in most cases should have cover actions. Cover and a page can share an UI component, provided that UI component somehow handles the layout differences, e.g. CoverBackground { TimerItem { coverMode: true } CoverActionList { ... } } vs. Page { TimerItem { coverMode: false } }.
Binding initialPage property to cover property is not ok.
Cheers,
Joona
________________________________
From: devel-bounces at lists.sailfishos.org [devel-bounces at lists.sailfishos.org] on behalf of joao morgado [joaodeusmorgado at yahoo.com]
Sent: 14 June 2013 05:38
To: devel at lists.sailfishos.org
Subject: [SailfishDevel] Make cover page equal to First page
Hi again
The app that I'm portin from Meego, it's a timer, so I need the cover to look the same has the first page, so the user can see the time running in the cover, just like in the first page.
So, I did:
ApplicationWindow
{
initialPage: FirstPage { }
cover: initialPage //Qt.resolvedUrl("cover/CoverPage.qml")
}
This works but when the app is in cover mode, the timer freezes, (unlike the meego N9 version, who keep running) and something gets messed up in the simulator, because when clicking the cover to return to first page, the app doesnt appear anymore, only the sailfish background.
Any ideias ?
Regards
João de Deus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sailfishos.org/pipermail/devel/attachments/20130614/431c5469/attachment.html>
More information about the Devel
mailing list