Commit 851fe6c7 authored by Tomaz  Canabrava's avatar Tomaz Canabrava
Browse files

Redo the About screen

parent a04287de
......@@ -4,33 +4,27 @@
import QtQml 2.12
import QtQuick 2.12
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.12 as QQC2
import QtQuick.Controls 1.4 as QQC1
import org.kde.kirigami 2.12 as Kirigami
import org.kde.kcm 1.2 as KCM
import org.kde.kitemmodels 1.0
import org.kcm.firewall 1.0
KCM.ScrollViewKCM {
id: root
title: i18n("About")
Kirigami.OverlaySheet {
id: sheet
header: Kirigami.Heading {
text: i18n("About Firewall")
}
header: Kirigami.FormLayout {
Kirigami.FormLayout {
QQC2.Label {
Kirigami.FormData.label: i18n("Firewall backend:")
Kirigami.FormData.label: i18n("Backend:")
text: kcm.client.name
}
QQC2.Label {
// Kirigami.FormData.Label: i18n("Backend Information:")
Kirigami.FormData.label: i18n("Version:")
text: kcm.client.version()
}
}
view: Flickable {
Image {
source: "plasma_firewall.png"
}
}
}
......@@ -405,7 +405,7 @@ KCM.ScrollViewKCM {
QQC2.Button {
icon.name: "help-about"
text: i18n("About")
onClicked: kcm.push("About.qml")
onClicked: about.sheetOpen = true
}
}
......@@ -420,5 +420,9 @@ KCM.ScrollViewKCM {
kcm.client.refresh();
}
}
About {
id: about
}
}
Supports Markdown
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