Added namereg register option to qml wallet
This commit is contained in:
@@ -254,13 +254,12 @@ ApplicationWindow {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
property var addressModel: ListModel {
|
||||
id: addressModel
|
||||
}
|
||||
TableView {
|
||||
id: addressView
|
||||
width: parent.width
|
||||
width: parent.width - 200
|
||||
height: 200
|
||||
anchors.bottom: logView.top
|
||||
TableViewColumn{ role: "name"; title: "name" }
|
||||
@@ -269,6 +268,30 @@ ApplicationWindow {
|
||||
model: addressModel
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
anchors.top: addressView.top
|
||||
anchors.left: addressView.right
|
||||
anchors.leftMargin: 20
|
||||
|
||||
TextField {
|
||||
placeholderText: "Name to register"
|
||||
id: nameToReg
|
||||
width: 150
|
||||
}
|
||||
|
||||
Button {
|
||||
anchors.top: nameToReg.bottom
|
||||
text: "Register"
|
||||
MouseArea{
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
eth.registerName(nameToReg.text)
|
||||
nameToReg.text = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
property var logModel: ListModel {
|
||||
id: logModel
|
||||
|
Reference in New Issue
Block a user