aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist/assets/qml/views/whisper.qml
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-06-24 01:19:33 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-06-24 01:19:33 +0800
commit72e2613a9fe3205fa5a67b72b832e03b2357ee88 (patch)
treebbc987510d279d9e174ff8f684158d668131661e /cmd/mist/assets/qml/views/whisper.qml
parent5daf8729be88eca87b302ebf7a46fc69cad0f6d0 (diff)
parent67e6f74e9af00ff011a6a02f18644804eb18cdaa (diff)
downloadgo-tangerine-0.9.32.tar
go-tangerine-0.9.32.tar.gz
go-tangerine-0.9.32.tar.bz2
go-tangerine-0.9.32.tar.lz
go-tangerine-0.9.32.tar.xz
go-tangerine-0.9.32.tar.zst
go-tangerine-0.9.32.zip
Merge branch 'release/0.9.32'v0.9.32
Diffstat (limited to 'cmd/mist/assets/qml/views/whisper.qml')
-rw-r--r--cmd/mist/assets/qml/views/whisper.qml74
1 files changed, 0 insertions, 74 deletions
diff --git a/cmd/mist/assets/qml/views/whisper.qml b/cmd/mist/assets/qml/views/whisper.qml
deleted file mode 100644
index dc097b806..000000000
--- a/cmd/mist/assets/qml/views/whisper.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-
-import QtQuick 2.0
-import QtQuick.Controls 1.0;
-import QtQuick.Layouts 1.0;
-import QtQuick.Dialogs 1.0;
-import QtQuick.Window 2.1;
-import QtQuick.Controls.Styles 1.1
-import Ethereum 1.0
-
-Rectangle {
- id: root
- property var title: "Whisper Traffic"
- property var menuItem
-
- objectName: "whisperView"
- anchors.fill: parent
-
- property var identity: ""
- Component.onCompleted: {
- identity = shh.newIdentity()
-
- var t = shh.watch({}, root)
- }
-
- function onShhMessage(message, i) {
- whisperModel.insert(0, {from: message.from, payload: eth.toAscii(message.payload)})
- }
-
- RowLayout {
- id: input
- anchors {
- left: parent.left
- leftMargin: 20
- top: parent.top
- topMargin: 20
- }
-
- TextField {
- id: to
- placeholderText: "To"
- }
- TextField {
- id: data
- placeholderText: "Data"
- }
- TextField {
- id: topics
- placeholderText: "topic1, topic2, topic3, ..."
- }
- Button {
- text: "Send"
- onClicked: {
- shh.post([eth.toHex(data.text)], "", identity, topics.text.split(","), 500, 50)
- }
- }
- }
-
- TableView {
- id: txTableView
- anchors {
- top: input.bottom
- topMargin: 10
- bottom: parent.bottom
- left: parent.left
- right: parent.right
- }
- TableViewColumn{ id: fromRole; role: "from" ; title: "From"; width: 300 }
- TableViewColumn{ role: "payload" ; title: "Payload" ; width: parent.width - fromRole.width - 2 }
-
- model: ListModel {
- id: whisperModel
- }
- }
-}