2020-08-04 22:22:51 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
import "../../../../../imports"
|
|
|
|
import "../../../../../shared"
|
|
|
|
|
|
|
|
Item {
|
|
|
|
property var onClick: function(){}
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: sectionTitle
|
|
|
|
//% "ENS usernames"
|
|
|
|
text: qsTrId("ens-usernames")
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 24
|
|
|
|
font.weight: Font.Bold
|
|
|
|
font.pixelSize: 20
|
|
|
|
}
|
|
|
|
|
|
|
|
ScrollView {
|
|
|
|
id: sview
|
|
|
|
clip: true
|
|
|
|
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
|
|
|
contentHeight: contentItem.childrenRect.height
|
|
|
|
anchors.top: sectionTitle.bottom
|
|
|
|
anchors.topMargin: Style.current.padding
|
|
|
|
anchors.bottom: startBtn.top
|
|
|
|
anchors.bottomMargin: Style.current.padding
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: contentItem
|
|
|
|
anchors.right: parent.right;
|
|
|
|
anchors.left: parent.left;
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: title
|
2020-08-26 15:52:26 +00:00
|
|
|
//% "TODO: show T&C and confirmation screen for acquiring a ens username"
|
|
|
|
text: qsTrId("todo--show-t-c-and-confirmation-screen-for-acquiring-a-ens-username")
|
2020-08-04 22:22:51 +00:00
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 24
|
|
|
|
font.weight: Font.Bold
|
|
|
|
font.pixelSize: 24
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledButton {
|
|
|
|
id: startBtn
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.bottomMargin: Style.current.padding
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2020-08-26 15:52:26 +00:00
|
|
|
//% "Ok"
|
|
|
|
label: qsTrId("ok")
|
2020-08-04 22:22:51 +00:00
|
|
|
onClicked: onClick()
|
|
|
|
}
|
|
|
|
}
|