update PageSetupWizardApiServicesList

This commit is contained in:
Cyril Anisimov
2025-07-26 15:39:47 +02:00
parent 3315675c11
commit 11e54ed12e
@@ -28,19 +28,10 @@ PageType {
Layout.topMargin: 20
}
BaseHeaderType {
Layout.fillWidth: true
Layout.topMargin: 8
Layout.rightMargin: 16
Layout.leftMargin: 16
Layout.bottomMargin: 16
headerText: qsTr("VPN by Amnezia")
descriptionText: qsTr("Choose a VPN service that suits your needs.")
}
}
ListView {
ListViewType {
id: servicesListView
anchors.top: header.bottom
@@ -48,28 +39,31 @@ PageType {
anchors.left: parent.left
anchors.bottom: parent.bottom
anchors.topMargin: 16
header: ColumnLayout {
width: listView.width
BaseHeaderType {
Layout.fillWidth: true
Layout.rightMargin: 16
Layout.leftMargin: 16
Layout.bottomMargin: 24
headerText: qsTr("VPN by Amnezia")
descriptionText: qsTr("Choose a VPN service that suits your needs.")
}
}
spacing: 0
property bool isFocusable: true
clip: true
reuseItems: true
model: ApiServicesModel
ScrollBar.vertical: ScrollBarType {}
delegate: ColumnLayout {
delegate: Item {
implicitWidth: servicesListView.width
implicitHeight: delegateContent.implicitHeight
width: listView.width
enabled: isServiceAvailable
ColumnLayout {
id: delegateContent
anchors.fill: parent
CardWithIconsType {
id: card
@@ -91,9 +85,8 @@ PageType {
}
}
Keys.onEnterPressed: this.clicked()
Keys.onReturnPressed: this.clicked()
}
Keys.onEnterPressed: clicked()
Keys.onReturnPressed: clicked()
}
}
}