qml: add serverlistmodel.py, add server list to ServerConfigDialog.qml

This commit is contained in:
Sander van Grieken
2022-12-30 16:22:22 +01:00
parent f13b43d546
commit f774174c85
6 changed files with 212 additions and 9 deletions
@@ -30,14 +30,44 @@ ElDialog {
height: parent.height
spacing: 0
ServerConfig {
id: serverconfig
ColumnLayout {
Layout.fillWidth: true
Layout.fillHeight: true
Layout.leftMargin: constants.paddingLarge
Layout.rightMargin: constants.paddingLarge
}
Item { Layout.fillHeight: true; Layout.preferredWidth: 1 }
ServerConfig {
id: serverconfig
Layout.fillWidth: true
}
Label {
text: qsTr('Servers')
font.pixelSize: constants.fontSizeLarge
color: Material.accentColor
}
Rectangle {
Layout.fillWidth: true
height: 1
color: Material.accentColor
}
Frame {
background: PaneInsetBackground { baseColor: Material.dialogColor }
verticalPadding: 0
horizontalPadding: 0
Layout.fillHeight: true
Layout.fillWidth: true
ListView {
anchors.fill: parent
model: Network.serverListModel
delegate: ServerDelegate { }
}
}
}
FlatButton {
Layout.fillWidth: true