Commit c155fb56 authored by Kevin Whitaker's avatar Kevin Whitaker

Add screen to add items. Add in navigation code between stack screens.

parent de6c3619
import QtQuick 2.10
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.2
Item {
ToolBar {
id:tools
anchors.right: parent.right
anchors.left: parent.left
RowLayout {
id:toolrow
anchors.fill: parent
ToolButton {
id:back
text: ""
Layout.alignment: Qt.AlignLeft
onClicked: tools.parent.parent.goBack()
}
}
}
ColumnLayout {
id: col
spacing: 2
anchors.top: tools.bottom
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right
RowLayout {
id:settingsDefaultTimeGroup
Layout.fillWidth: true
}
}
}
\ No newline at end of file
......@@ -12,5 +12,11 @@ ApplicationWindow {
id: stack
initialItem: "otplist.qml"
anchors.fill: parent
signal changeFrame(string item)
signal goBack()
Connections {
onChangeFrame: stack.push(Qt.resolvedUrl(item))
onGoBack: stack.pop()
}
}
}
\ No newline at end of file
......@@ -18,6 +18,9 @@ Item {
ToolTip.text: qsTr("Add Item")
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
ToolTip.visible: down
onClicked: {
otpTimeout.parent.parent.changeFrame("additem.qml")
}
}
ToolButton {
id: addQRItem
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment