chore(StatusQ/Utils): return StackView's push/pop return values from push/pop methods in StackViewStates

It allows to access pushed/popped items when using StackViewStates for
managing StackView.
This commit is contained in:
Michał Cieślak 2023-06-23 09:39:15 +02:00 committed by Michał
parent 3a801955e8
commit 8cd6de5013

View File

@ -23,7 +23,7 @@ QtObject {
statesStack.push(state) statesStack.push(state)
// Stack view related operations: // Stack view related operations:
stackView.push(item, properties, operation) return stackView.push(item, properties, operation)
} }
function pop(operation) { function pop(operation) {
@ -31,7 +31,7 @@ QtObject {
statesStack.pop() statesStack.pop()
// Stack view related operations: // Stack view related operations:
stackView.pop(operation) return stackView.pop(operation)
} }
function clear(initialState, operation) { function clear(initialState, operation) {
@ -40,6 +40,6 @@ QtObject {
statesStack.push(initialState) statesStack.push(initialState)
// Stack view related operations: // Stack view related operations:
stackView.pop(null, operation) // Resetting to the initial stack state return stackView.pop(null, operation) // Resetting to the initial stack state
} }
} }