[SailfishDevel] How to flick horizontally and vertically in one view?

2014-01-29 Thread Tobi D .



Hi there,

I've got another question on how to develop apps for SailfishOS.

Please have a look at Jolla Calendar app. There you can flick horizontally 
between months and you can flick down pulley menu, also from the month part on 
top of the view. If there are many events in a day, the whole view is 
vertically scrollable.

I want to implement a similar behavior in my app. Content of the view may be 
scrollable vertically and there shall be a pulley menu. By pushing left and 
right, the content shall flick to the content of the next respective previous 
week.

I wonder how this works. I tried several things, but I don't know which 
components to combine to get this behavior. One possible solution is to use 
push buttons to go to previous/next week, but that's not very SailfishOS like.

Maybe you can give me a clue. Or is it possible to have a look at the source 
code of Jolla Calendar app?

Best regards,
Tobi


  ___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] How to attach a page to initial page?

2014-01-20 Thread Tobi D .
Thank you Andrey! That's exactly what I was looking for.

Best regards,
Tobi

> Date: Mon, 20 Jan 2014 13:38:45 +0600
> From: coderusin...@gmail.com
> To: devel@lists.sailfishos.org
> Subject: Re: [SailfishDevel] How to attach a page to initial page?
> 
> onStatusChanged: {
> if (status === PageStatus.Active && pageStack.depth === 1) {
> pageStack.pushAttached("SourcesPage.qml", {});
> }
> }
> 
> On 20.01.2014 13:37, Kalle Vahlman wrote:
> > 2014/1/17 Tobi D. :
> >> Hi there,
> >>
> >> How can I push an attached page to my initial page on the pageStack?
> >>
> >> I'd like to have a behavior similar to the Jolla Store app. There you can
> >> push to the next page to get categories when you are on initial page.
> >>
> >> I tried several thing to achieve this, but didn't get it work. Doing an
> >> "pushAttached" to pageStack in "onComplete" of my initial page ends in 
> >> error
> >> message that you can not push a page on stack while another push is 
> >> running.
> > onComplete is from Component (as opposed from Item), so it doesn't
> > indicate the page is "ready".
> >
> > A better place for pushing would probably be onStatusChanged(), when
> > the status changes to Active.
> >
> 
> ___
> SailfishOS.org Devel mailing list
  ___
SailfishOS.org Devel mailing list

[SailfishDevel] How to attach a page to initial page?

2014-01-19 Thread Tobi D .
Hi there,

How can I push an attached page to my initial page on the pageStack?

I'd like to have a behavior similar to the Jolla Store app. There you can push 
to the next page to get categories when you are on initial page.

I tried several thing to achieve this, but didn't get it work. Doing an 
"pushAttached" to pageStack in "onComplete" of my initial page ends in error 
message that you can not push a page on stack while another push is running.

There is another idea I've not tried yet. Maybe it is possible to use a Timer 
with a few milliseconds which does the pushAttached to the pageStack and 
disables itself after that. But this solution sounds quite bad to me.

Thanks for help!

Best regards,
Tobi

  ___
SailfishOS.org Devel mailing list