examples/declarative/tutorials/extending/chapter1-basics/app.qml
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
--- a/examples/declarative/tutorials/extending/chapter1-basics/app.qml	Tue Jul 06 15:10:48 2010 +0300
+++ b/examples/declarative/tutorials/extending/chapter1-basics/app.qml	Wed Aug 18 10:37:55 2010 +0300
@@ -37,21 +37,24 @@
 ** $QT_END_LICENSE$
 **
 ****************************************************************************/
-
-import Music 1.0
+//![0]
+import Charts 1.0
 import Qt 4.7
 
-Rectangle {
+Item {
     width: 300; height: 200
 
-    Musician {
-        id: aMusician
-        name: "Reddy the Rocker"
-        instrument: "Guitar"
+    PieChart {
+        id: aPieChart
+        anchors.centerIn: parent
+        width: 100; height: 100
+        name: "A simple pie chart"
+        color: "red"
     }
 
     Text {
-        anchors.fill: parent
-        text: aMusician.name + " plays the " + aMusician.instrument
+        anchors { bottom: parent.bottom; horizontalCenter: parent.horizontalCenter; bottomMargin: 20 }
+        text: aPieChart.name
     }
 }
+//![0]