Commit 8c7e8748 authored by Tomaz  Canabrava's avatar Tomaz Canabrava

Fixed last of the issues with visualization and icons

parent b274bd25
......@@ -96,7 +96,7 @@ KCM.ScrollViewKCM {
width: Kirigami.Units.iconSizes.small
delegate: QQC2.ToolButton {
icon.name: "list-remove"
icon.name: "user-trash"
Layout.alignment: Qt.AlignRight
visible: model ? root.currentHoveredRow === model.row : false
onClicked: {
......
......@@ -61,34 +61,37 @@ KCM.ScrollViewKCM {
QQC1.TableViewColumn {
title: i18n("Protocol")
role: "protocol"
width: 80
width: Kirigami.Units.gridUnit * 3
}
QQC1.TableViewColumn {
title: i18n("From")
role: "sourceAddress"
width: 100
width: Kirigami.Units.gridUnit * 10
}
QQC1.TableViewColumn {
role: "sourcePort"
width: 50
width: Kirigami.Units.gridUnit * 3
}
QQC1.TableViewColumn {
title: i18n("To")
role: "destinationAddress"
width: 100
width: Kirigami.Units.gridUnit * 10
}
QQC1.TableViewColumn {
role: "destinationPort"
width: 50
width: Kirigami.Units.gridUnit * 3
}
QQC1.TableViewColumn {
title: i18n("Interface")
role: "interface"
width: 100
width: Kirigami.Units.gridUnit * 3
}
QQC1.TableViewColumn {
resizable: false
width: Kirigami.Units.iconSizes.small
delegate: QQC2.ToolButton {
icon.name: "list-remove"
icon.name: "user-trash"
visible: root.currentHoveredRow === model.row
onClicked: {
var rule = firewallClient.createRuleFromLog(
......
......@@ -186,7 +186,7 @@ KCM.ScrollViewKCM {
}
}
QQC2.ToolButton {
icon.name: "list-remove"
icon.name: "user-trash"
onClicked: {
firewallClient.removeRule(model.row)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment