summaryrefslogtreecommitdiffstats
path: root/examples/declarative/parallax/parallax.qml
blob: 52bd2103762a79adc12ddab7cb38a270e9ed4fe5 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import Qt 4.6
import "../clock"

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
                anchors.topMargin: 10
                anchors.horizontalCenter: parent.horizontalCenter

                width: 300; height: 400
                clip: true
                resizeMode: Loader.SizeItemToLoader
                
                source: "../../../demos/declarative/samegame/samegame.qml"
            }
        }

        currentIndex: root.currentIndex
    }
}