[SailfishDevel] Devel Digest, Vol 22, Issue 16
mariusz sapinski
mariusz.sapinski at gmail.com
Wed Feb 24 13:05:45 UTC 2016
Thank you Kimmo Lindholm, brackets were indeed wrong .
Mariusz
On Wed, Feb 24, 2016 at 1:18 PM, <devel-request at lists.sailfishos.org> wrote:
> Send Devel mailing list submissions to
> devel at lists.sailfishos.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel
> or, via email, send a message with subject or body 'help' to
> devel-request at lists.sailfishos.org
>
> You can reach the person managing the list at
> devel-owner at lists.sailfishos.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Devel digest..."
>
>
> Today's Topics:
>
> 1. Re: overlapping ComboBoxes (Kimmo Lindholm)
> 2. Re: overlapping ComboBoxes (?????????? ?????? ?????????)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 24 Feb 2016 11:45:08 +0000
> From: Kimmo Lindholm <Kimmo.Lindholm at eke.fi>
> To: Sailfish OS Developers <devel at lists.sailfishos.org>
> Subject: Re: [SailfishDevel] overlapping ComboBoxes
> Message-ID:
> <
> AMSPR07MB40543CB0984EA3B877DBB14FAA50 at AMSPR07MB405.eurprd07.prod.outlook.com
> >
>
> Content-Type: text/plain; charset="utf-8"
>
> Check your { }
>
> ? this comment is not true } // end of first combo box:
> interval
>
> -kimmo
>
>
> From: devel-bounces at lists.sailfishos.org [mailto:
> devel-bounces at lists.sailfishos.org] On Behalf Of mariusz sapinski
> Sent: 24. helmikuuta 2016 11:45
> To: devel at lists.sailfishos.org
> Subject: [SailfishDevel] overlapping ComboBoxes
>
> Hi,
> I have two ComboBoxes in one Column. Code looks a bit like that:
>
> import QtQuick 2.0
> import Sailfish.Silica 1.0
>
> Dialog {
>
> id: setupDialog;
> allowedOrientations: Orientation.Portrait;
>
> property bool tmpUseMinute: useMinute;
> property bool tmpUseKwadrans: useKwadrans;
> property bool tmpUsePol: usePol;
> property bool tmpUseCala: useCala;
>
>
> Column {
> id: column;
>
> height: parent.height; // - (Theme.paddingMedium);
> anchors.leftMargin: Theme.paddingLarge;
> anchors.rightMargin: Theme.paddingLarge;
> width: setupDialog.width;
> spacing: Theme.paddingLarge;
>
> PageHeader {
> title: qsTr("Settings")
> }
>
> ComboBox {
> currentIndex: 1
> id: combo1
> label: "interval"
> width: setupDialog.width
> menu: ContextMenu {
> MenuItem {
> text: "1 minute (for test)"
> onClicked: {
> useMinute = true;
> useKwadrans = false;
> usePol = false;
> useCala = false;
> }
> }
> MenuItem {
> text: "15 minutes"
> onClicked: {
> useMinute=false;
> useKwadrans = true;
> usePol = false;
> useCala = false;
> }
> }
> } // end of first combo box: interval
>
> ComboBox {
> currentIndex: 3
> id: combo2
> label: "duration"
> width: setupDialog.width
> menu: ContextMenu {
> MenuItem {
> text: "20 minutes"
> onClicked: {
> useTwenty = true;
> useThirty = false;
> useFortyFive = false;
> }
> }
>
> MenuItem {
> text: "30 minutes"
> onClicked: {
> useTwenty=false;
> useThirty = true;
> useFortyFive = false;
> }
> }
>
> } // endof ContextMenu
> } // end of second combo box: duration
>
>
> } // end of Column
>
> }
> }
>
> my unfortunately both boxes overlap on the screen. What am I missing? I
> thought Column should take care that the elements inside are correctly
> positioned.
> Cheers, Mariusz
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> https://lists.sailfishos.org/pipermail/devel/attachments/20160224/f71b29f7/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Wed, 24 Feb 2016 17:53:43 +0600
> From: ?????????? ?????? ????????? <coderusinbox at gmail.com>
> To: devel at lists.sailfishos.org
> Subject: Re: [SailfishDevel] overlapping ComboBoxes
> Message-ID: <56CD99C7.8090504 at gmail.com>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> First of all column should NOT have own height. It calculated
> automatically based on it's childrens heights.
> Second is you should use Flickable outside Column to automatically
> position items on actions.
>
> 24.02.2016 15:44, mariusz sapinski ?????:
> > Hi,
> >
> > I have two ComboBoxes in one Column. Code looks a bit like that:
> >
> > import QtQuick 2.0
> > import Sailfish.Silica 1.0
> >
> > Dialog {
> >
> > id: setupDialog;
> > allowedOrientations: Orientation.Portrait;
> >
> > property bool tmpUseMinute: useMinute;
> > property bool tmpUseKwadrans: useKwadrans;
> > property bool tmpUsePol: usePol;
> > property bool tmpUseCala: useCala;
> >
> >
> > Column {
> > id: column;
> >
> > height: parent.height; // - (Theme.paddingMedium);
> > anchors.leftMargin: Theme.paddingLarge;
> > anchors.rightMargin: Theme.paddingLarge;
> > width: setupDialog.width;
> > spacing: Theme.paddingLarge;
> >
> > PageHeader {
> > title: qsTr("Settings")
> > }
> >
> > ComboBox {
> > currentIndex: 1
> > id: combo1
> > label: "interval"
> > width: setupDialog.width
> > menu: ContextMenu {
> > MenuItem {
> > text: "1 minute (for test)"
> > onClicked: {
> > useMinute = true;
> > useKwadrans = false;
> > usePol = false;
> > useCala = false;
> > }
> > }
> > MenuItem {
> > text: "15 minutes"
> > onClicked: {
> > useMinute=false;
> > useKwadrans = true;
> > usePol = false;
> > useCala = false;
> > }
> > }
> > } // end of first combo box: interval
> >
> > ComboBox {
> > currentIndex: 3
> > id: combo2
> > label: "duration"
> > width: setupDialog.width
> > menu: ContextMenu {
> > MenuItem {
> > text: "20 minutes"
> > onClicked: {
> > useTwenty = true;
> > useThirty = false;
> > useFortyFive = false;
> > }
> > }
> >
> > MenuItem {
> > text: "30 minutes"
> > onClicked: {
> > useTwenty=false;
> > useThirty = true;
> > useFortyFive = false;
> > }
> > }
> >
> > } // endof ContextMenu
> > } // end of second combo box: duration
> >
> >
> > } // end of Column
> >
> > }
> > }
> >
> >
> > my unfortunately both boxes overlap on the screen. What am I missing?
> > I thought Column should take care that the elements inside are
> > correctly positioned.
> >
> > Cheers, Mariusz
> >
> >
> >
> > _______________________________________________
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to
> devel-unsubscribe at lists.sailfishos.org
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> https://lists.sailfishos.org/pipermail/devel/attachments/20160224/7c12a534/attachment.html
> >
>
> ------------------------------
>
> _______________________________________________
> Devel mailing list
> Devel at lists.sailfishos.org
> https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel
>
> End of Devel Digest, Vol 22, Issue 16
> *************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20160224/af7374e1/attachment.html>
More information about the Devel
mailing list