Kirigami-addons

aboutcomponent.cpp
1// SPDX-FileCopyrightText: 2024 Carl Schwan <carl@carlschwan.eu>
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#include "aboutcomponent_p.h"
5
6#include <KLocalizedString>
7#include <QGuiApplication>
8
9AboutComponent::AboutComponent(QObject *parent)
10 : QObject(parent)
11{}
12
13AboutComponent::~AboutComponent() = default;
14
15QList<KAboutComponent> AboutComponent::components() const
16{
18 auto platform = QGuiApplication::platformName();
19 platform.replace(0, 1, platform[0].toUpper());
20 allComponents.prepend(KAboutComponent(platform, i18n("Windowing system")));
21 allComponents.prepend(KAboutComponent(i18n("Qt"),
22 i18nc("@info", "Cross-platform application development framework"),
23 i18n("Using %1 and built against %2", QString::fromLocal8Bit(qVersion()), QStringLiteral(QT_VERSION_STR)),
24 QStringLiteral("https://www.qt.io/"),
26 allComponents.prepend(KAboutComponent(i18n("KDE Frameworks"),
27 i18nc("@info", "Collection of libraries created by the KDE Community to extend Qt"),
28 QStringLiteral(KI18N_VERSION_STRING),
29 QStringLiteral("https://develop.kde.org/products/frameworks/"),
31
32 return allComponents;
33}
QList< KAboutComponent > components() const
static KAboutData applicationData()
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
void prepend(parameter_type value)
QString fromLocal8Bit(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.