Created unit test for bug #847.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
This commit is contained in:
parent
595133f9c8
commit
ae67df9d8b
3 changed files with 70 additions and 0 deletions
26
tests/QtDeclarative/bug_847.qml
Normal file
26
tests/QtDeclarative/bug_847.qml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
|
||||
import Qt 4.7
|
||||
|
||||
Rectangle {
|
||||
width: 500
|
||||
height: 500
|
||||
color: 'red'
|
||||
|
||||
property variant pythonObject: undefined
|
||||
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
text: 'click me'
|
||||
color: 'white'
|
||||
}
|
||||
|
||||
Timer {
|
||||
interval: 1; running: true;
|
||||
onTriggered: {
|
||||
if (pythonObject != undefined) {
|
||||
pythonObject.blubb(42, 84)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue