Add tests for qmlregisterType function and qml list properties.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
9b2bf0a267
commit
e62b0364f1
3 changed files with 122 additions and 0 deletions
29
tests/QtDeclarative/registertype.qml
Normal file
29
tests/QtDeclarative/registertype.qml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import Charts 1.0
|
||||
import QtQuick 1.0
|
||||
|
||||
Item {
|
||||
width: 300; height: 200
|
||||
|
||||
PieChart {
|
||||
anchors.centerIn: parent
|
||||
width: 100; height: 100
|
||||
|
||||
slices: [
|
||||
PieSlice {
|
||||
anchors.fill: parent
|
||||
color: "red"
|
||||
fromAngle: 0; angleSpan: 110
|
||||
},
|
||||
PieSlice {
|
||||
anchors.fill: parent
|
||||
color: "black"
|
||||
fromAngle: 110; angleSpan: 50
|
||||
},
|
||||
PieSlice {
|
||||
anchors.fill: parent
|
||||
color: "blue"
|
||||
fromAngle: 160; angleSpan: 100
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue