cards/qml/cards/main.qml
author John Kern <johnk@symbian.org>
Mon, 25 Oct 2010 10:35:32 -0700
changeset 3 2e16639599b7
permissions -rwxr-xr-x
flipping cards example
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     1
import Qt 4.7
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     2
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     3
Rectangle {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     4
    id: window
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     5
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     6
    width: 360; height: 640
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     7
    color: "darkgreen"
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     8
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     9
    // a button to exit the app.
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    10
    Button {x: 165; y:10; width: 150; height: 55}
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    11
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    12
    // here are the cards
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    13
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    14
    Row {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    15
        spacing: 30
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    16
        anchors.centerIn: parent
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    17
        Cards {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    18
            yAxis: 1
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    19
            angle: 180
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    20
            image: "images/nicubunu_White_deck_Black_Joker.svg"
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    21
        }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    22
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    23
        Cards {
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    24
            angle: 540
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    25
            xAxis: 1
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    26
            image: "images/nicubunu_White_deck_Queen_of_hearts.svg"
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    27
        }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    28
    }
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
    29
}