summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@nokia.com>2010-07-16 21:36:04 +0200
committerYoann Lopes <yoann.lopes@nokia.com>2010-07-16 21:36:04 +0200
commit11ac3fe1b2dec49e455c1593bcadd107d05f1f76 (patch)
tree7804eae227bc8057a697cc334f22c85b5a80ea19
parent7a1c75ceca2aa221693f3b75f7e201a16377a4e8 (diff)
Added control icons.
-rw-r--r--resources/arrow.pngbin0 -> 6677 bytes
-rw-r--r--resources/circle.pngbin0 -> 3581 bytes
-rw-r--r--resources/example.qml143
-rw-r--r--resources/minus.pngbin0 -> 4363 bytes
-rw-r--r--resources/plus.pngbin0 -> 4649 bytes
5 files changed, 96 insertions, 47 deletions
diff --git a/resources/arrow.png b/resources/arrow.png
new file mode 100644
index 0000000..8807fa2
--- /dev/null
+++ b/resources/arrow.png
Binary files differ
diff --git a/resources/circle.png b/resources/circle.png
new file mode 100644
index 0000000..afb1a7b
--- /dev/null
+++ b/resources/circle.png
Binary files differ
diff --git a/resources/example.qml b/resources/example.qml
index fb10cda..540f079 100644
--- a/resources/example.qml
+++ b/resources/example.qml
@@ -24,7 +24,7 @@ Item {
Rectangle {
id: rectangle1
width: 139
- height: 212
+ height: 204
radius: 15
gradient: Gradient {
GradientStop {
@@ -68,13 +68,14 @@ Item {
source: "qt-logo.png"
}
- Rectangle {
+ Item {
id: rectangle3
x: 89
y: 95
- width: 24
- height: 26
- color: "#ffffff"
+ width: 30
+ height: 30
+ anchors.horizontalCenterOffset: 35
+ anchors.centerIn: image7
MouseArea {
id: mouse_area1
@@ -82,45 +83,72 @@ Item {
onPressed: camerawrapper.yaw += 20
}
+
+ Image {
+ id: image5
+ rotation: -90
+ smooth: true
+ anchors.fill: parent
+ source: "arrow.png"
+ }
}
- Rectangle {
+ Item {
id: rectangle4
x: 27
y: 95
- width: 24
- height: 26
- color: "#ffffff"
+ width: 30
+ height: 30
+ anchors.horizontalCenterOffset: -35
+ anchors.centerIn: image7
MouseArea {
id: mouse_area2
anchors.fill: parent
onPressed: camerawrapper.yaw -= 20
}
+
+ Image {
+ id: image4
+ rotation: 90
+ smooth: true
+ anchors.fill: parent
+ source: "arrow.png"
+ }
}
- Rectangle {
+ Item {
id: rectangle5
- x: 58
y: 64
- width: 24
- height: 26
- color: "#ffffff"
+ width: 30
+ height: 30
+ anchors.verticalCenterOffset: -35
+ anchors.centerIn: image7
MouseArea {
id: mouse_area3
anchors.fill: parent
onPressed: camerawrapper.pitch -= 20
}
+
+ Image {
+ id: image3
+ rotation: 180
+ smooth: true
+ anchors.fill: parent
+ source: "arrow.png"
+ }
}
- Rectangle {
+ Item {
id: rectangle6
x: 58
- y: 126
- width: 24
- height: 26
- color: "#ffffff"
+ y: 124
+ width: 30
+ height: 30
+ anchors.verticalCenterOffset: 35
+ anchors.centerIn: image7
+ anchors.horizontalCenterOffset: 0
MouseArea {
id: mouse_area4
x: 0
@@ -133,38 +161,55 @@ Item {
onPressed: camerawrapper.pitch += 20
}
+
+ Image {
+ id: image6
+ smooth: true
+ anchors.fill: parent
+ source: "arrow.png"
+ }
}
- Rectangle {
- id: rectangle9
- x: 89
- y: 171
+ Image {
+ id: image7
+ x: 84
+ y: 0
width: 24
- height: 26
- color: "#ffffff"
+ height: 24
+ anchors.verticalCenterOffset: 2
+ anchors.centerIn: parent
+ smooth: true
+ source: "circle.png"
+
MouseArea {
- id: mouse_area7
+ id: mouse_area5
x: 0
- y: 0
+ y: -1
anchors.fill: parent
anchors.topMargin: 0
anchors.rightMargin: 0
anchors.bottomMargin: 0
anchors.leftMargin: 0
- onPressed: camerawrapper.zoom *= 1.3
+ onClicked: { camerawrapper.yaw = 0; camerawrapper.pitch = 0 }
}
}
- Rectangle {
- id: rectangle7
- x: 58
- y: 95
- width: 24
- height: 26
- color: "#ffffff"
+ Image {
+ id: image8
+ x: 20
+ y: 182
+ width: 30
+ height: 30
+ anchors.bottomMargin: 9
+ anchors.bottom: parent.bottom
+ anchors.horizontalCenterOffset: 14
+ anchors.horizontalCenter: rectangle4.horizontalCenter
+ smooth: true
+ source: "minus.png"
+
MouseArea {
- id: mouse_area5
+ id: mouse_area6
x: 0
y: -1
anchors.fill: parent
@@ -173,28 +218,32 @@ Item {
anchors.bottomMargin: 0
anchors.leftMargin: 0
- onClicked: { camerawrapper.yaw = 0; camerawrapper.pitch = 0 }
+ onPressed: camerawrapper.zoom /= 1.3
}
}
- Rectangle {
- id: rectangle8
- x: 27
- y: 171
- width: 24
- height: 26
- color: "#ffffff"
+ Image {
+ id: image9
+ width: 30
+ height: 30
+ anchors.horizontalCenterOffset: -14
+ anchors.bottom: parent.bottom
+ anchors.bottomMargin: 9
+ anchors.horizontalCenter: rectangle3.horizontalCenter
+ smooth: true
+ source: "plus.png"
+
MouseArea {
- id: mouse_area6
+ id: mouse_area7
x: 0
- y: -1
+ y: 0
anchors.fill: parent
anchors.topMargin: 0
anchors.rightMargin: 0
anchors.bottomMargin: 0
anchors.leftMargin: 0
- onPressed: camerawrapper.zoom /= 1.3
+ onPressed: camerawrapper.zoom *= 1.3
}
}
}
diff --git a/resources/minus.png b/resources/minus.png
new file mode 100644
index 0000000..71afb02
--- /dev/null
+++ b/resources/minus.png
Binary files differ
diff --git a/resources/plus.png b/resources/plus.png
new file mode 100644
index 0000000..3264332
--- /dev/null
+++ b/resources/plus.png
Binary files differ