This repository has been archived on 2021-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
ui/qml/panes/AddGroupPane.qml

54 lines
885 B
QML
Raw Permalink Normal View History

2018-11-22 00:01:17 +00:00
import QtGraphicalEffects 1.0
import QtQuick 2.7
import QtQuick.Controls 2.4
import QtQuick.Controls.Material 2.0
import QtQuick.Layouts 1.3
import QtQuick.Window 2.11
2019-02-12 22:47:23 +00:00
import QtQuick.Controls 1.4
2018-11-22 00:01:17 +00:00
import "../widgets"
2019-02-12 22:47:23 +00:00
import "../styles"
2018-11-22 00:01:17 +00:00
ColumnLayout { // settingsPane
anchors.fill: parent
StackToolbar {
text: "Create a new group"
aux.visible: false
}
2019-02-12 22:47:23 +00:00
Column {
leftPadding: 10
spacing: 5
2018-11-22 00:01:17 +00:00
ScalingLabel {
text: "Server:"
}
2019-02-12 22:47:23 +00:00
TextField {
2018-11-22 00:01:17 +00:00
id: txtServer
2019-02-12 22:47:23 +00:00
style: CwtchTextFieldStyle{ width: 400 }
2019-02-13 00:23:35 +00:00
text: "2c3kmoobnyghj2zw6pwv7d57yzld753auo3ugauezzpvfak3ahc4bdyd"
2018-11-22 00:01:17 +00:00
}
ScalingLabel{
text: "Group name:"
}
2019-02-12 22:47:23 +00:00
TextField {
2018-11-22 00:01:17 +00:00
id: txtGroupName
2019-02-12 22:47:23 +00:00
style: CwtchTextFieldStyle{ width: 400 }
2018-11-22 00:01:17 +00:00
text: "my awesome group"
}
SimpleButton {
text: "create"
onClicked: {
gcd.createGroup(txtServer.text, txtGroupName.text)
}
}
2019-02-12 22:47:23 +00:00
}//end of column with padding
2018-11-22 00:01:17 +00:00
}