Re: [SailfishDevel] PullDownMenu in a Dialog?
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-unsubscr...@lists.sailfishos.org -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] PullDownMenu in a Dialog?
Ah, yes, I forgot to mention that I wanted the PullDownMenu to appear below the header, but thinking about it it's more convenient to have it always visible. Thanks. Now I just need to position the SilicaListView correctly. "y: header.height;" pushes the header bar down header.height, "topMargin: header.height;" and "anchors.top: header.bottom;" have nada effect for some reason..? On Thursday 11 June 2015 05:05:24 Kimmo Lindholm wrote: > Similar things as earlier. > > Don't give y to Pulldownmenu, breaks. > Dialogheader not in Dialog, but in child. > > https://gist.github.com/kimmoli/626c838174682c1f6f20 > > This uses SilicaFlickable as first child of dialog. > > -kimmo > > Thomas Tanghus kirjoitti to kesäkuuta 11 05:14:07 2015 GMT+0300: > > > 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 -- > > Med venlig hilsen / Best regards > > > > Thomas Tanghus > > > -- > Lähetetty Jollastani > ___ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] PullDownMenu in a Dialog?
You did some weird stuff... I sent PR: https://github.com/tanghus/kitchen-timer-qml/pull/6 But imho it's better to use /[..]/ folder to navigate up and not use PullDown menu for this. 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) }) 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/SoundSelectDialog.qml#L58 ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] PullDownMenu in a Dialog?
Hmm, I'm pretty sure I've already tried that. Gimme a sec and I'll try again :) On Thursday 11 June 2015 05:05:24 Kimmo Lindholm wrote: > Similar things as earlier. > > Don't give y to Pulldownmenu, breaks. > Dialogheader not in Dialog, but in child. > > https://gist.github.com/kimmoli/626c838174682c1f6f20 > > This uses SilicaFlickable as first child of dialog. > > -kimmo > > Thomas Tanghus kirjoitti to kesäkuuta 11 05:14:07 2015 GMT+0300: > > > 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 -- > > Med venlig hilsen / Best regards > > > > Thomas Tanghus > > > -- > Lähetetty Jollastani > ___ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] PullDownMenu in a Dialog?
Similar things as earlier. Don't give y to Pulldownmenu, breaks. Dialogheader not in Dialog, but in child. https://gist.github.com/kimmoli/626c838174682c1f6f20 This uses SilicaFlickable as first child of dialog. -kimmo Thomas Tanghus kirjoitti to kesäkuuta 11 05:14:07 2015 GMT+0300: > 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/SoundSelectDialog.qml#L58 > -- > Med venlig hilsen / Best regards > > Thomas Tanghus -- Lähetetty Jollastani ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] PullDownMenu in a Dialog?
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/SoundSelectDialog.qml#L58 -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org