summaryrefslogtreecommitdiffstats
path: root/examples/declarative/parallax/parallax.qml
blob: cb0437da38afe82ea57500261662d1144489e180 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import Qt 4.7
import "../clocks/content"
import "qml"

Rectangle {
    id: root

    width: 320; height: 480

    ParallaxView {
        id: parallax
        anchors.fill: parent
        background: "pics/background.jpg"

        Item {
            property url icon: "pics/yast-wol.png"
            width: 320; height: 480
            Clock { anchors.centerIn: parent }
        }

        Item {
            property url icon: "pics/home-page.svg"
            width: 320; height: 480
            Smiley { }
        }

        Item {
            property url icon: "pics/yast-joystick.png"
            width: 320; height: 480

            Loader {
                anchors { top: parent.top; topMargin: 10; horizontalCenter: parent.horizontalCenter }
                width: 300; height: 400
                clip: true; resizeMode: Loader.SizeItemToLoader
                source: "../../../demos/declarative/samegame/samegame.qml"
            }
        }

        currentIndex: root.currentIndex
    }
}