From f6e68361c5c096977ca3853ed626d97039b6028b Mon Sep 17 00:00:00 2001 From: Kevin Whitaker Date: Wed, 26 Sep 2018 10:35:54 -0400 Subject: [PATCH] Set layout for otp items in UI. --- qml/otplist.qml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/qml/otplist.qml b/qml/otplist.qml index 7aa76b6..8b04080 100644 --- a/qml/otplist.qml +++ b/qml/otplist.qml @@ -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 -- GitLab