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 id: fibonacciInput
placeholderText: "Your number" placeholderText: "Your number"
validator: IntValidator {bottom: 0; top: 100;} validator: IntValidator {bottom: 0; top: 100;}
Component.onCompleted: { text = fibonacci.input } Component.onCompleted: { text = demo.fibonacci.input }
onTextChanged: { fibonacci.input = parseInt(text, 10) } onTextChanged: { demo.fibonacci.input = parseInt(text, 10) }
} }
Text { Text {
text: "The Fibonacci number: " + fibonacci.result text: "The Fibonacci number: " + demo.fibonacci.result
} }
} }
ListView { ListView {
id: listView id: listView
model: fibonacciList model: demo.fibonacciList
delegate: Row { delegate: Row {
Text { text: result } Text { text: result }
} }