[SailfishDevel] PullDownMenu in a Dialog?

Thomas Tanghus thomas at tanghus.net
Thu Jun 11 10:51:22 UTC 2015


On Thursday 11 June 2015 15:26:00 Andrey Kozhevnikov wrote:
> You did some weird stuff...

LOL yeah probably

> I sent PR:
> https://github.com/tanghus/kitchen-timer-qml/pull/6

Thanks. It works perfectly.

> But imho it's better to use /[..]/ folder to navigate up and not use
> PullDown menu for this.

So do I, but I the The Average User(TM) doesn't...

> P.S. I personally prefer using this:
> var picker = pageStack.push("Sailfish.Pickers.MusicPickerPage",
> {"title": qsTr("Select timer ringtone")})
> picker.selectedContentChanged.connect(function() {
> console.log(picker.selectedContent) })

Yes I saw you used a similar example here. I've marked your msg for future 
reference :)

> 11.06.2015 07:14, Thomas Tanghus пишет:
> > Hi
> > 
> > I have a Dialog with a SilicaListView as a file picker. Now I want to have
> > a PullDownMenu with a single MenuItem to go one level up.
> > It kinda works, but the positioning is all messed up.
> > 
> > Problem 1: The indicator is placed a tad below the header, so I made an
> > ugly hack setting "y:  - Theme.paddingLarge;", but that's not a viable
> > solution.
> > 
> > Problem 2: When the menu is pulled down it appears at the height of the
> > DialogHeader below the DialogHeader - if that makes sense? :P
> > 
> > Is a PullDownMenu in a Dialog not supported, or am I doing something
> > wrong?
> > 
> > https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/SoundSe
> > lectDialog.qml#L58
> > 
> > 
> > _______________________________________________
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to
> > devel-unsubscribe at lists.sailfishos.org

-- 
Med venlig hilsen / Best regards

Thomas Tanghus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20150611/8d26b60e/attachment.pgp>


More information about the Devel mailing list