Kirigami-addons

AboutKDEPage.qml
1// SPDX-FileCopyrightText: 2022 Joshua Goins <josh@redstrate.com>
2// SPDX-License-Identifier: LGPL-2.0-or-later
3
4import QtQuick
5import QtQuick.Controls as QQC2
6import QtQuick.Window
7import QtQuick.Layouts
8import org.kde.kirigami as Kirigami
9import org.kde.coreaddons as Core
10
11/**
12 * @brief An "About KDE" page using Form components.
13 *
14 * This component consists of a full, internationalized "About KDE" page
15 * that can be instantiated directly without passing any properties.
16 *
17 * @since KirigamiAddons 0.11.0
18 *
19 * @inherit Kirigami.ScrollablePage
20 */
21FormCardPage {
22 id: page
23
24 title: i18nd("kirigami-addons6", "About KDE")
25
26 FormCard {
27 Layout.topMargin: Kirigami.Units.largeSpacing * 4
28
30 id: generalDelegate
31 Layout.fillWidth: true
32 background: null
33 contentItem: RowLayout {
34 spacing: Kirigami.Units.smallSpacing * 2
35
36 Kirigami.Icon {
37 Layout.preferredHeight: Kirigami.Units.iconSizes.huge
38 Layout.preferredWidth: height
39 Layout.maximumWidth: page.width / 3;
40 Layout.rightMargin: Kirigami.Units.largeSpacing
41 source: "kde"
42 }
43
44 ColumnLayout {
45 Layout.fillWidth: true
46 spacing: Kirigami.Units.smallSpacing
47
48 Kirigami.Heading {
49 Layout.fillWidth: true
50 text: i18nd("kirigami-addons6", "KDE")
51 wrapMode: Text.WordWrap
52 }
53
54 Kirigami.Heading {
55 Layout.fillWidth: true
56 level: 3
57 type: Kirigami.Heading.Type.Secondary
58 wrapMode: Text.WordWrap
59 text: i18nd("kirigami-addons6", "Be Free!")
60 }
61 }
62 }
63 }
64
66
68 text: i18nd("kirigami-addons6", "KDE is a world-wide community of software engineers, artists, writers, translators and creators who are committed to Free Software development. KDE produces the Plasma desktop environment, hundreds of applications, and the many software libraries that support them.\n\n\
69KDE is a cooperative enterprise: no single entity controls its direction or products. Instead, we work together to achieve the common goal of building the world's finest Free Software. Everyone is welcome to join and contribute to KDE, including you.")
70 textItem.wrapMode: Text.WordWrap
71 }
72
74
76 icon.name: "globe-symbolic"
77 text: i18nd("kirigami-addons6", "Homepage")
78 url: "https://kde.org/"
79 }
80 }
81
83 title: i18nd("kirigami-addons6", "Report bugs")
84 }
85
86 FormCard {
88 text: i18nd("kirigami-addons6", "Software can always be improved, and the KDE team is ready to do so. However, you - the user - must tell us when something does not work as expected or could be done better.\n\n\
89KDE has a bug tracking system. Use the button below to file a bug, or use the program's About page to report a bug specific to this application.\n\n\
90If you have a suggestion for improvement then you are welcome to use the bug tracking system to register your wish. Make sure you use the severity called \"Wishlist\".")
91 textItem.wrapMode: Text.WordWrap
92 }
93
95
97 url: {
98 if (Core.AboutData.bugAddress !== "submit@bugs.kde.org") {
99 return Core.AboutData.bugAddress
100 }
101 const elements = Core.AboutData.productName.split('/');
102 let url = `https://bugs.kde.org/enter_bug.cgi?format=guided&product=${elements[0]}&version=${Core.AboutData.version}`;
103 if (elements.length === 2) {
104 url += "&component=" + elements[1];
105 }
106 return url;
107 }
108
109 icon.name: "tools-report-bug-symbolic"
110 text: i18nd("kirigami-addons6", "Report a bug")
111 enabled: url.length > 0
112 }
113 }
114
115 FormHeader {
116 title: i18nd("kirigami-addons6", "Join us")
117 }
118
119 FormCard {
121 text: i18nd("kirigami-addons6", "You do not have to be a software developer to be a member of the KDE team. You can join the language teams that translate program interfaces. You can provide graphics, themes, sounds, and improved documentation. You decide!")
122 textItem.wrapMode: Text.WordWrap
123 }
124
125 FormDelegateSeparator { above: getInvolved }
126
128 id: getInvolved
129 text: i18nd("kirigami-addons6", "Get Involved")
130 icon.name: "system-user-list"
131 url: "https://community.kde.org/Get_Involved"
132 }
133
134 FormDelegateSeparator { above: devDoc; below: getInvolved }
135
137 id: devDoc
138 icon.name: 'applications-development-symbolic'
139 text: i18nd("kirigami-addons6", "Developer Documentation")
140 url: "https://develop.kde.org/"
141 }
142 }
143
144 FormHeader {
145 title: i18nd("kirigami-addons6", "Support us")
146 }
147
148 FormCard {
150 text: i18nd("kirigami-addons6", "KDE software is and will always be available free of charge, however creating it is not free.\n\n\
151To support development the KDE community has formed the KDE e.V., a non-profit organization legally founded in Germany. KDE e.V. represents the KDE community in legal and financial matters.\n\n\
152KDE benefits from many kinds of contributions, including financial. We use the funds to reimburse members and others for expenses they incur when contributing. Further funds are used for legal support and organizing conferences and meetings.\n\n\
153We would like to encourage you to support our efforts with a financial donation.\n\n\
154Thank you very much in advance for your support.")
155 textItem.wrapMode: Text.WordWrap
156 }
157
158 FormDelegateSeparator { above: ev }
159
161 id: ev
162
163 text: i18nd("kirigami-addons6", "KDE e.V")
164 icon.name: 'kde-symbolic'
165 url: "https://ev.kde.org/"
166 }
167
168 FormDelegateSeparator { above: donate; below: ev }
169
171 id: donate
172
173 text: i18nd("kirigami-addons6", "Donate")
174 icon.name: 'donate-symbolic'
175 url: "https://www.kde.org/donate"
176 }
177 }
178}
A base item for delegates to be used in a FormCard.
A single card that follows a form style.
Definition FormCard.qml:35
A context-aware separator.
A header item for a form card.
A form delegate that contains a URL.
A Form delegate that corresponds to a text label and a description.
QString i18nd(const char *domain, const char *text, const TYPE &arg...)
QAction * donate(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:11 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.