[utilities/kaichat] src/widgets: It was ported to appdata file
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 2e1e6da681b868174c62d1443031195e4ac9f679 by Laurent Montel. Committed on 16/08/2026 at 05:25. Pushed by mlaurent into branch 'master'. It was ported to appdata file D +0 -40 src/widgets/whatsnewtranslations.cpp D +0 -18 src/widgets/whatsnewtranslations.h https://invent.kde.org/utilities/kaichat/-/commit/2e1e6da681b868174c62d1443031195e4ac9f679 diff --git a/src/widgets/whatsnewtranslations.cpp b/src/widgets/whatsnewtranslations.cpp deleted file mode 100644 index aa909fe..0000000 --- a/src/widgets/whatsnewtranslations.cpp +++ /dev/null @@ -1,40 +0,0 @@ -/* - SPDX-FileCopyrightText: 2025-2026 Laurent Montel <[email protected]> - - SPDX-License-Identifier: LGPL-2.0-or-later -*/ - -#include "whatsnewtranslations.h" - -WhatsNewTranslations::WhatsNewTranslations() = default; - -WhatsNewTranslations::~WhatsNewTranslations() = default; - -// Use by newFeaturesMD5 -QList<KLazyLocalizedString> WhatsNewTranslations::lastNewFeatures() const -{ - const QList<KLazyLocalizedString> info{kli18n("Allow to export text in autogenerate editor plugins.")}; - return info; -} - -QList<PimCommon::WhatsNewInfo> WhatsNewTranslations::createWhatsNewInfo() const -{ - QList<PimCommon::WhatsNewInfo> listInfo; - { - PimCommon::WhatsNewInfo info; - info.setNewFeatures({i18n("Add new whatsnew widget."), i18n("New plugin: show collection size.")}); - info.setVersion(QStringLiteral("6.5.0")); - listInfo.append(std::move(info)); - } - { - PimCommon::WhatsNewInfo info; - QStringList lst; - for (const KLazyLocalizedString &l : lastNewFeatures()) { - lst += l.toString(); - } - info.setNewFeatures(lst); - info.setVersion(QStringLiteral("6.6.0")); - listInfo.append(std::move(info)); - } - return listInfo; -} diff --git a/src/widgets/whatsnewtranslations.h b/src/widgets/whatsnewtranslations.h deleted file mode 100644 index f20aba5..0000000 --- a/src/widgets/whatsnewtranslations.h +++ /dev/null @@ -1,18 +0,0 @@ -/* - SPDX-FileCopyrightText: 2025-2026 Laurent Montel <[email protected]> - - SPDX-License-Identifier: LGPL-2.0-or-later -*/ -#pragma once -#include "kmail_export.h" -#include <PimCommon/WhatsNewTranslationsBase> - -class KMAIL_EXPORT WhatsNewTranslations : public PimCommon::WhatsNewTranslationsBase -{ -public: - WhatsNewTranslations(); - ~WhatsNewTranslations() override; - - [[nodiscard]] QList<PimCommon::WhatsNewInfo> createWhatsNewInfo() const override; - [[nodiscard]] QList<KLazyLocalizedString> lastNewFeatures() const override; -};