Created unit test for qvariant conversion for object type.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
a623a57d06
commit
2ef14fcc12
3 changed files with 50 additions and 7 deletions
14
tests/QtDeclarative/viewmodel.qml
Normal file
14
tests/QtDeclarative/viewmodel.qml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import Qt 4.7
|
||||
|
||||
ListView {
|
||||
width: 100; height: 100
|
||||
anchors.fill: parent
|
||||
|
||||
model: myModel
|
||||
delegate: Rectangle {
|
||||
height: 25
|
||||
width: 100
|
||||
Text { text: title }
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue