Update qtquick controls 2 to moved demo objects
parent
2f0aa11ee1
commit
5afb953c41
|
@ -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 }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue