'last' property on WizardComponents is now queried from UI, not from the wizard. This allows the content of the WizardComponent itself to be taken into account.
27 lines
421 B
QML
27 lines
421 B
QML
import QtQuick 2.0
|
|
|
|
Item {
|
|
signal next
|
|
signal prev
|
|
signal accept
|
|
property var wizard_data : ({})
|
|
property bool valid
|
|
property bool last: false
|
|
property bool ready: false
|
|
|
|
onAccept: {
|
|
apply()
|
|
}
|
|
|
|
function apply() { }
|
|
function checkIsLast() {
|
|
apply()
|
|
last = wizard.wiz.isLast(wizard_data)
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
checkIsLast()
|
|
}
|
|
|
|
}
|