status-desktop/main.qml

47 lines
1.0 KiB
QML
Raw Normal View History

2020-05-06 17:40:00 +00:00
import QtQuick 2.3
import QtQuick.Controls 1.3
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
ApplicationWindow {
2020-05-07 17:54:38 +00:00
width: 1024
height: 768
2020-05-06 17:40:00 +00:00
title: "JSON RPC Caller"
visible: true
2020-05-07 17:54:38 +00:00
SplitView {
2020-05-06 17:40:00 +00:00
anchors.fill: parent
2020-05-07 17:54:38 +00:00
Item {
width: 300
height: parent.height
2020-05-06 17:40:00 +00:00
}
2020-05-07 17:54:38 +00:00
Item {
width: parent.width/2
height: parent.height
ColumnLayout {
anchors.fill: parent
RowLayout {
TextArea { id: callResult; Layout.fillWidth: true; text: logic.callResult; readOnly: true }
}
RowLayout {
Label { text: "data2" }
TextField { id: txtData; Layout.fillWidth: true; text: "" }
Button {
text: "Send"
onClicked: logic.onSend(txtData.text)
enabled: txtData.text !== ""
}
}
2020-05-06 17:40:00 +00:00
}
2020-05-07 17:54:38 +00:00
2020-05-06 17:40:00 +00:00
}
2020-05-07 17:54:38 +00:00
2020-05-06 17:40:00 +00:00
}
2020-05-07 17:54:38 +00:00
2020-05-06 17:40:00 +00:00
}