Files
amnezia-client/client/ui/qml/Pages2/PageDeinstalling.qml
T

86 lines
1.9 KiB
QML
Raw Normal View History

2023-06-05 15:49:10 +08:00
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import SortFilterProxyModel 0.2
import PageEnum 1.0
import Style 1.0
2023-06-05 15:49:10 +08:00
import "./"
import "../Controls2"
import "../Controls2/TextTypes"
import "../Config"
PageType {
id: root
Component.onCompleted: PageController.disableTabBar(true)
Component.onDestruction: PageController.disableTabBar(false)
2023-08-09 18:17:29 +05:00
2023-06-05 15:49:10 +08:00
SortFilterProxyModel {
id: proxyServersModel
2023-06-05 15:49:10 +08:00
sourceModel: ServersModel
2023-06-05 15:49:10 +08:00
filters: [
ValueFilter {
2026-06-04 15:45:53 +01:00
roleName: "serverId"
value: ServersUiController.processedServerId
2023-06-05 15:49:10 +08:00
}
]
}
ListViewType {
id: listView
2023-06-05 15:49:10 +08:00
anchors.fill: parent
2023-06-05 15:49:10 +08:00
spacing: 16
2023-06-05 15:49:10 +08:00
model: proxyServersModel
2023-06-05 15:49:10 +08:00
delegate: ColumnLayout {
width: listView.width
2023-06-05 15:49:10 +08:00
BaseHeaderType {
Layout.fillWidth: true
Layout.topMargin: 20 + PageController.safeAreaTopMargin
Layout.leftMargin: 16
Layout.rightMargin: 16
2023-06-05 15:49:10 +08:00
headerText: qsTr("Removing services from %1").arg(name)
}
2023-06-05 15:49:10 +08:00
ProgressBarType {
id: progressBar
2023-06-05 15:49:10 +08:00
Layout.fillWidth: true
Layout.topMargin: 32
Layout.leftMargin: 16
Layout.rightMargin: 16
2023-06-05 15:49:10 +08:00
Timer {
id: timer
2023-06-05 15:49:10 +08:00
interval: 300
repeat: true
running: true
onTriggered: {
progressBar.value += 0.003
2023-06-05 15:49:10 +08:00
}
}
}
ParagraphTextType {
Layout.fillWidth: true
Layout.topMargin: 8
Layout.leftMargin: 16
Layout.rightMargin: 16
text: qsTr("Usually it takes no more than 5 minutes")
}
2023-06-05 15:49:10 +08:00
}
}
}