Commit graph

9 commits

Author SHA1 Message Date
Devin Lin
a8b858dc3e Remove kirigami version in imports
This fixes potential issues stemming from pinning versions on Kirigami
qml api imports
2026-03-06 22:08:07 -05:00
Sebastian Kügler
8a70d7c50d info kcm: make webpage optional
On some systems, the webpage info may be empty. In the UI, this would
lead to a broken button (since the UI is not visible). So let's hide
this button when the URL isn't set anyway.

Signed-off-by: Sebastian Kügler <sebas@kde.org>
2025-04-14 11:21:47 +00:00
Sebastian Kügler
8b4abd134a info kcm: move vendorinfo block higher
If present, this is quite important information (e.g. model number,
serial, etc.), so give it a more prominent position.

For a default configured system, no visual change.

Signed-off-by: Sebastian Kügler <sebas@kde.org>
2025-04-08 12:35:19 +00:00
Sebastian Kügler
6c746e62d5 [info kcm]: add vendorinfo card
This change adds a card to the Information KCM which can be used to
display vendor-specific information (think of product info, serial or
model number, support info, etc.).

The information is read from a json file in /etc/vendorinfo.json, format
as follows:

'''
{
    "Title" : "Vendor Information",
    "Content" : [
        {
            "Key": "Model Number",
            "Value": "24ABC-13N4"
        },
        {
            "Key": "Serial Number",
            "Value": "778899223344"
        },
        {
            "Key": "Support Phone",
            "Value": "+31 6 48370928"
        }
    ]
}
'''

Title is the card header, each Key/Value block adds a TextDelegate. This
block is only displayed if the file actually exists and has a Title set.

Signed-off-by: Sebastian Kügler <sebas@kde.org>
2025-01-17 09:51:12 +00:00
Carl Schwan
c039bcef86
info-kcm: Port to FormCard 2023-09-21 20:43:23 +02:00
Oliver Beard
2087935c05 kcms/info: Move footer actions to header 2023-07-25 18:44:56 +00:00
Alexey Andreyev
127bbdf653 Port away from PlasmaCore and PlasmaExtras to Kirigami
See also:

https://pointieststick.com/2023/06/14/call-to-action-easy-porting-opportunity-in-plasma/
2023-07-25 01:13:52 +00:00
Alexander Lohnau
5479e29bd6 Use org.kde.kcmutils instead of org.kde.kcm module
The latter will be removed, because the files were moved to kcmutils
2023-06-06 21:31:58 +02:00
Alexander Lohnau
739897e335 Port to kcmutils_add_qml_module 2023-05-06 12:13:12 +02:00