Added LinearLayout component
authorAdriano Rezende <adriano.rezende@openbossa.org>
Tue, 15 Nov 2011 22:11:35 +0000 (14:11 -0800)
committerJens Bache-Wiig <jens.bache-wiig@nokia.com>
Tue, 15 Nov 2011 22:11:35 +0000 (14:11 -0800)
commiteaa24c3ec0b3ce567a65bef44aa6c967af65bead
treee69e3dd09a8a5b712c7110bd5ad5f849a9e4a456
parent0959b13bd88fe195d0715820c750c3e5c8ba8fb1
Added LinearLayout component

This component provides a more advanced layout capability compared
to Row and Column elements. It supports element stretching, individual
item spacing and minimum/maximum size hints.

Any visual QML element can be inserted into this layout. Each element
should provide size policy information through attached properties.

Follows an example:

LinearLayout {
    spacing: 2
    orientation: LinearLayout.Horizontal

    Rectangle {
        color: "red"
        height: 50
        Layout.minimumWidth: 100
    }

    Rectangle {
        color: "green"
        height: 50
        Layout.maximumWidth: 200
        Layout.stretchFactor: 2.0
    }
}

Signed-off-by: Adriano Rezende <adriano.rezende@openbossa.org>
Merge-request: 10
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
src/qdeclarativelayout.cpp [new file with mode: 0644]
src/qdeclarativelayout.h [new file with mode: 0644]
src/qdeclarativelayoutengine.cpp [new file with mode: 0644]
src/qdeclarativelayoutengine_p.h [new file with mode: 0644]
src/qdeclarativelinearlayout.cpp [new file with mode: 0644]
src/qdeclarativelinearlayout.h [new file with mode: 0644]
src/qstyleplugin.cpp
src/src.pro