From 34f7a15e1f2afe36333cdaee1c62a15159b7f13c Mon Sep 17 00:00:00 2001 From: MrMirDan Date: Mon, 2 Mar 2026 14:39:37 +0200 Subject: [PATCH] removed xray traffic-related functionality --- .../qml/Pages2/PageSettingsXRayServerInfo.qml | 63 +------------------ 1 file changed, 1 insertion(+), 62 deletions(-) diff --git a/client/ui/qml/Pages2/PageSettingsXRayServerInfo.qml b/client/ui/qml/Pages2/PageSettingsXRayServerInfo.qml index fc1312f70..4f795a7a9 100644 --- a/client/ui/qml/Pages2/PageSettingsXRayServerInfo.qml +++ b/client/ui/qml/Pages2/PageSettingsXRayServerInfo.qml @@ -17,40 +17,6 @@ import "../Components" PageType { id: root - property list labelsModel: [ - lastUpdateObject, - sendObject, - downloadedObject - ] - - // TODO: contentKey functionality - QtObject { - id: lastUpdateObject - - readonly property string title: qsTr("Configuration Last Update") - readonly property string contentKey: "20 dec 2024 22:10" - readonly property string objectImageSource: "qrc:/images/controls/refresh-cw.svg" - readonly property bool isRichText: true - } - - QtObject { - id: sendObject - - readonly property string title: qsTr("Send") - readonly property string contentKey: "48,9 MB" - readonly property string objectImageSource: "qrc:/images/controls/arrow-up.svg" - readonly property bool isRichText: false - } - - QtObject { - id: downloadedObject - - readonly property string title: qsTr("Downloaded") - readonly property string contentKey: "2,78 GB" - readonly property string objectImageSource: "qrc:/images/controls/arrow-down.svg" - readonly property bool isRichText: false - } - property var processedServer Connections { @@ -83,7 +49,7 @@ PageType { anchors.fill: parent - model: labelsModel + model: 1 header: ColumnLayout { width: listView.width @@ -116,33 +82,6 @@ PageType { } } - delegate: ColumnLayout { - width: listView.width - spacing: 0 -/* - Connections { - target: ServersModel - - function onModelReset() { - delegateItem.rightText = ServersModel.data(contentKey) - } - } -*/ - LabelWithImageType { - id: delegateItem - - Layout.fillWidth: true - Layout.margins: 16 - - imageSource: objectImageSource - leftText: title - rightText: contentKey // ServersModel.data(contentKey) - rightTextFormat: isRichText ? Text.RichText : Text.PlainText - - visible: rightText !== "" - } - } - footer: ColumnLayout { id: footer