summaryrefslogtreecommitdiffstats
path: root/examples/declarative
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-05-14 19:48:29 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-05-14 19:48:29 (GMT)
commit42b528b20b5eba313cf76ad6b2f41cfe1a876781 (patch)
tree3b36b45d4df96ba73013da5c3ba3e41810836617 /examples/declarative
parent01e03e91a0c6867205f5a3ab0306f0c6a067ffad (diff)
parentc8d2e18c4b431870560f324a17f20904bb47ae68 (diff)
downloadQt-42b528b20b5eba313cf76ad6b2f41cfe1a876781.zip
Qt-42b528b20b5eba313cf76ad6b2f41cfe1a876781.tar.gz
Qt-42b528b20b5eba313cf76ad6b2f41cfe1a876781.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1: More improvements to pixmap cache key generation More 4.7 stuff. Fix for autotest failure in qwidget::saveRestoreGeometry() Optimized pixmapcache key generation for icons and styles doc: Another upgrade of the top page and overviews. Mac: restoreGeometry() [Regression] Build failure on Mac Carbon doc: Added some \briefs to how-to docs. Some 4.7 changes. Updated changelog. Cherry pick fix for MOBILITY-932 from Qt Mobility. Cherry pick fix for MOBILITY-962 from Qt Mobility. Cherry pick fix for MOBILITY-828 from Qt Mobility. Bearer management changes from Qt Mobility. Cherry pick fix for MOBILITY-828 from Qt Mobility. Added snippet labels to QML Dial example. Fixed documentation typo.
Diffstat (limited to 'examples/declarative')
-rw-r--r--examples/declarative/dial/content/Dial.qml6
-rw-r--r--examples/declarative/dial/dial-example.qml10
2 files changed, 14 insertions, 2 deletions
diff --git a/examples/declarative/dial/content/Dial.qml b/examples/declarative/dial/content/Dial.qml
index f9ab3e3..6f24801 100644
--- a/examples/declarative/dial/content/Dial.qml
+++ b/examples/declarative/dial/content/Dial.qml
@@ -8,6 +8,7 @@ Item {
Image { source: "background.png" }
+//! [needle_shadow]
Image {
x: 93
y: 35
@@ -17,6 +18,8 @@ Item {
angle: needleRotation.angle
}
}
+//! [needle_shadow]
+//! [needle]
Image {
id: needle
x: 95; y: 33
@@ -33,5 +36,8 @@ Item {
}
}
}
+//! [needle]
+//! [overlay]
Image { x: 21; y: 18; source: "overlay.png" }
+//! [overlay]
}
diff --git a/examples/declarative/dial/dial-example.qml b/examples/declarative/dial/dial-example.qml
index 2e102b0..900954f 100644
--- a/examples/declarative/dial/dial-example.qml
+++ b/examples/declarative/dial/dial-example.qml
@@ -1,6 +1,7 @@
import Qt 4.7
import "content"
+//! [0]
Rectangle {
color: "#545454"
width: 300; height: 300
@@ -14,7 +15,10 @@ Rectangle {
Rectangle {
id: container
- anchors { bottom: parent.bottom; left: parent.left; right: parent.right; leftMargin: 20; rightMargin: 20; bottomMargin: 10 }
+ anchors { bottom: parent.bottom; left: parent.left
+ right: parent.right; leftMargin: 20; rightMargin: 20
+ bottomMargin: 10
+ }
height: 16
radius: 8
@@ -37,8 +41,10 @@ Rectangle {
MouseArea {
anchors.fill: parent
- drag.target: parent; drag.axis: Drag.XAxis; drag.minimumX: 2; drag.maximumX: container.width - 32
+ drag.target: parent; drag.axis: Drag.XAxis
+ drag.minimumX: 2; drag.maximumX: container.width - 32
}
}
}
}
+//! [0] \ No newline at end of file