Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/kcm/package/contents/ui/ConnectionsView.qml b/kcm/package/contents/ui/ConnectionsView.qml
- index 0beae4b..53f0a8f 100644
- --- a/kcm/package/contents/ui/ConnectionsView.qml
- +++ b/kcm/package/contents/ui/ConnectionsView.qml
- @@ -22,19 +22,26 @@ import QtQuick 2.12
- import QtQuick.Layouts 1.3
- import QtQuick.Controls 2.12 as QQC2
- import org.kde.kcm 1.2 as KCM
- +import org.kcm.firewall 1.0
- -import org.kde.kirigami 2.4 as Kirigami
- +import org.kde.kirigami 2.10 as Kirigami
- /* TODO: Move this to a Table View */
- KCM.ScrollViewKCM {
- id: root
- signal filterConnection(var protocol, var localAddress, var foreignAddres, var status)
- + title: i18n("Connections")
- + property NetstatClient netStatClient
- + property QtObject drawer
- +
- + Component.onCompleted: print("AAAA"+netStatClient)
- view: ListView {
- clip: true
- - model: netStatClient.connections()
- + model: netStatClient ? netStatClient.connections() : null
- delegate: ConnectionItemDelegate {
- onFilterConnection: root.filterConnection(protocol, localAddress, foreignAddres, status)
- + onClicked: root.drawer.open()
- }
- headerPositioning: ListView.OverlayHeader
- diff --git a/kcm/package/contents/ui/main.qml b/kcm/package/contents/ui/main.qml
- index a81b3e9..8f83b15 100644
- --- a/kcm/package/contents/ui/main.qml
- +++ b/kcm/package/contents/ui/main.qml
- @@ -124,7 +124,7 @@ KCM.ScrollViewKCM {
- footer: RowLayout {
- QQC2.Button {
- text: i18n("Connections...")
- - onClicked: kcm.push("ConnectionsView.qml");
- + onClicked: kcm.push("ConnectionsView.qml", {"netStatClient": netStatClient, "drawer": drawer});
- }
- QQC2.Button {
- text: i18n("Logs...")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement