Update qtquick controls 2 to moved demo objects

master
Jos van den Oever 2017-09-01 00:20:58 +02:00
parent 2f0aa11ee1
commit 5afb953c41
1 changed files with 4 additions and 4 deletions

View File

@ -43,16 +43,16 @@ ApplicationWindow {
id: fibonacciInput
placeholderText: "Your number"
validator: IntValidator {bottom: 0; top: 100;}
Component.onCompleted: { text = fibonacci.input }
onTextChanged: { fibonacci.input = parseInt(text, 10) }
Component.onCompleted: { text = demo.fibonacci.input }
onTextChanged: { demo.fibonacci.input = parseInt(text, 10) }
}
Text {
text: "The Fibonacci number: " + fibonacci.result
text: "The Fibonacci number: " + demo.fibonacci.result
}
}
ListView {
id: listView
model: fibonacciList
model: demo.fibonacciList
delegate: Row {
Text { text: result }
}