10import QtQuick.Controls as QQC2
13import org.kde.kirigami as Kirigami
25 Layout.fillWidth: true
26 spacing: Kirigami.Units.largeSpacing
29 Layout.preferredHeight: Kirigami.Units.iconSizes.huge
30 Layout.preferredWidth: Kirigami.Units.iconSizes.huge
31 source: root.metaData.iconName
32 fallback: "application-x-plasma"
36 Layout.fillWidth:
true
39 Layout.fillWidth:
true
40 text: root.metaData.version ?
i18ndc(
"kcmutils6",
"Plugin name and plugin version",
"%1 %2", root.metaData.name, root.metaData.version) : root.metaData.name
41 wrapMode: Text.WordWrap
44 Layout.fillWidth:
true
46 text: root.metaData.description
47 wrapMode:
Text.WordWrap
54 Layout.fillWidth:
true
55 Layout.topMargin:
Kirigami.Units.largeSpacing
56 Layout.bottomMargin:
Kirigami.Units.largeSpacing
62 text:
i18nd(
"kcmutils6",
"Copyright")
65 Layout.leftMargin:
Kirigami.Units.gridUnit
66 text: root.metaData.copyrightText
67 visible: text.length > 0
70 Layout.leftMargin:
Kirigami.Units.gridUnit
71 url: root.metaData.website ? root.metaData.website :
""
72 visible: url.length > 0
79 text:
i18nd(
"kcmutils6",
"License:")
82 text: root.metaData.license
84 licenseSheet.text = root.metaData.licenseText
85 licenseSheet.title = root.metaData.license
94 implicitHeight:
Kirigami.Units.largeSpacing
95 visible: repAuthors.visible
98 text:
i18nd(
"kcmutils6",
"Authors")
99 visible: repAuthors.visible
104 model: root.metaData.authors
105 delegate: personDelegate
111 implicitHeight:
Kirigami.Units.largeSpacing
112 visible: repCredits.visible
115 text:
i18nd(
"kcmutils6",
"Credits")
116 visible: repCredits.visible
121 model: root.metaData.otherContributors
122 delegate: personDelegate
128 implicitHeight:
Kirigami.Units.largeSpacing
129 visible: repTranslators.visible
132 text:
i18nd(
"kcmutils6",
"Translators")
133 visible: repTranslators.visible
138 model: root.metaData.translators
139 delegate: personDelegate
147 height: implicitHeight + (
Kirigami.Units.largeSpacing)
155 visible: modelData.emailAddress
156 icon.
name:
"mail-sent"
159 QQC2.
ToolTip.text:
i18nd(
"kcmutils6",
"Send an email to %1", modelData.emailAddress)
160 onClicked:
Qt.openUrlExternally(
"mailto:%1".arg(modelData.emailAddress))
163 visible: modelData.webAddress
167 QQC2.
ToolTip.text: modelData.webAddress
168 onClicked:
Qt.openUrlExternally(modelData.webAddress)
175 property alias text: licenseLabel.text
178 height: parent.height
179 anchors.centerIn: parent
188 Component.onCompleted: {
190 background.visible =
true;
196 contentHeight: licenseLabel.contentHeight
201 wrapMode:
Text.WordWrap
QString i18ndc(const char *domain, const char *context, const char *text, const TYPE &arg...)
QString i18nd(const char *domain, const char *text, const TYPE &arg...)
QStringView level(QStringView ifopt)
QString name(StandardAction id)