equal
deleted
inserted
replaced
35 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
35 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
36 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." |
36 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." |
37 ** $QT_END_LICENSE$ |
37 ** $QT_END_LICENSE$ |
38 ** |
38 ** |
39 ****************************************************************************/ |
39 ****************************************************************************/ |
40 |
40 //![0] |
41 import Music 1.0 |
41 import Charts 1.0 |
42 import Qt 4.7 |
42 import Qt 4.7 |
43 |
43 |
44 Rectangle { |
44 Item { |
45 width: 300; height: 200 |
45 width: 300; height: 200 |
46 |
46 |
47 Musician { |
47 PieChart { |
48 id: aMusician |
48 id: aPieChart |
49 name: "Reddy the Rocker" |
49 anchors.centerIn: parent |
50 instrument: "Guitar" |
50 width: 100; height: 100 |
|
51 name: "A simple pie chart" |
|
52 color: "red" |
51 } |
53 } |
52 |
54 |
53 Text { |
55 Text { |
54 anchors.fill: parent |
56 anchors { bottom: parent.bottom; horizontalCenter: parent.horizontalCenter; bottomMargin: 20 } |
55 text: aMusician.name + " plays the " + aMusician.instrument |
57 text: aPieChart.name |
56 } |
58 } |
57 } |
59 } |
|
60 //![0] |