summaryrefslogtreecommitdiffstats
path: root/examples/declarative/parallax/parallax.qml
blob: 6193f278a0bb80c38c903ab31ce67d250866a7c1 (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.6
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
    }
}