change Flickable to FlickableType for ClientManagement and ClientInfo pages

This commit is contained in:
vladimir.kuznetsov 2023-01-16 12:37:14 +03:00
parent 599910daea
commit 3f99c52349
3 changed files with 7 additions and 30 deletions

View file

@ -28,26 +28,17 @@ PageClientInfoBase {
running: ClientInfoLogic.busyIndicatorIsRunning
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom
anchors.topMargin: 20
anchors.bottom: root.bottom
anchors.bottomMargin: 20
anchors.left: root.left
anchors.leftMargin: 30
anchors.right: root.right
anchors.rightMargin: 30
contentHeight: content.height
clip: true
ColumnLayout {
id: content
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.rightMargin: GC.defaultMargin
LabelType {
enabled: !ClientInfoLogic.busyIndicatorIsRunning

View file

@ -28,26 +28,17 @@ PageClientInfoBase {
running: ClientInfoLogic.busyIndicatorIsRunning
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom
anchors.topMargin: 20
anchors.bottom: root.bottom
anchors.bottomMargin: 20
anchors.left: root.left
anchors.leftMargin: 30
anchors.right: root.right
anchors.rightMargin: 30
contentHeight: content.height
clip: true
ColumnLayout {
id: content
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.rightMargin: GC.defaultMargin
LabelType {
enabled: !ClientInfoLogic.busyIndicatorIsRunning

View file

@ -31,16 +31,10 @@ PageBase {
running: ClientManagementLogic.busyIndicatorIsRunning
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom
anchors.topMargin: 20
anchors.bottom: root.bottom
anchors.bottomMargin: 20
contentHeight: content.height
clip: true
Column {
id: content
@ -49,8 +43,9 @@ PageBase {
anchors.right: parent.right
LabelType {
anchors.left: parent.left
font.pixelSize: 20
leftPadding: -20
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter
text: ClientManagementLogic.labelCurrentVpnProtocolText
}