Index: sources/gui/qml/components/StackItem.qml =================================================================== diff -u -r8d6f0d14c717e6f3eecb32b6acb4c4306d8eb608 -r821bf955d0ba7e028bccfee7c04ca77cf80a0bd4 --- sources/gui/qml/components/StackItem.qml (.../StackItem.qml) (revision 8d6f0d14c717e6f3eecb32b6acb4c4306d8eb608) +++ sources/gui/qml/components/StackItem.qml (.../StackItem.qml) (revision 821bf955d0ba7e028bccfee7c04ca77cf80a0bd4) @@ -27,6 +27,8 @@ Item { id : _root property alias stackView: _stackView + visible: false + width : Variables.applicationWidth height: Variables.applicationHeight @@ -103,6 +105,15 @@ info() } + /*! + * \brief reset the stack to the bottom and only the first item will remain. + */ + function reset() { + stackView.clear() + stackView.push(stackView.initialItem) + info() + } + StackView { id : _stackView initialItem : null anchors.fill: parent