Commit f6e68361 authored by Kevin Whitaker's avatar Kevin Whitaker

Set layout for otp items in UI.

parent 96d58401
......@@ -42,8 +42,31 @@ Item {
anchors.bottom: parent.bottom
Component {
id: otpDelegate
Text {
text: display.name
Rectangle {
id: rect
width: parent.parent.width
height: 50
radius: 4
antialiasing: true
border {
width: 2
color: "grey"
}
RowLayout {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: 20
anchors.right: parent.right
anchors.rightMargin: 20
Text {
id: otpName
text: display.name
}
Text {
id: otpCode
Layout.alignment: Qt.AlignRight
}
}
}
}
model: otpListModel
......
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