Merge pull request #4 from status-im/splitview
basic, resizable splitview
This commit is contained in:
commit
3a69578845
26
main.qml
26
main.qml
|
@ -4,18 +4,23 @@ import QtQuick.Controls 2.3
|
|||
import QtQuick.Layouts 1.3
|
||||
|
||||
ApplicationWindow {
|
||||
width: 800
|
||||
height: 300
|
||||
width: 1024
|
||||
height: 768
|
||||
title: "JSON RPC Caller"
|
||||
visible: true
|
||||
|
||||
menuBar: MenuBar {
|
||||
Menu {
|
||||
title: "&File"
|
||||
MenuItem { text: "&Exit"; onTriggered: logic.onExitTriggered() }
|
||||
}
|
||||
SplitView {
|
||||
anchors.fill: parent
|
||||
|
||||
Item {
|
||||
width: 300
|
||||
height: parent.height
|
||||
}
|
||||
|
||||
Item {
|
||||
width: parent.width/2
|
||||
height: parent.height
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
|
||||
|
@ -24,7 +29,7 @@ ApplicationWindow {
|
|||
}
|
||||
|
||||
RowLayout {
|
||||
Label { text: "data" }
|
||||
Label { text: "data2" }
|
||||
TextField { id: txtData; Layout.fillWidth: true; text: "" }
|
||||
Button {
|
||||
text: "Send"
|
||||
|
@ -33,4 +38,9 @@ ApplicationWindow {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue