Pimcommon

whatsnewtranslationsbase.cpp
1/*
2 SPDX-FileCopyrightText: 2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#include "whatsnewtranslationsbase.h"
7#include <QCryptographicHash>
8using namespace PimCommon;
9WhatsNewTranslationsBase::WhatsNewTranslationsBase() = default;
10
11WhatsNewTranslationsBase::~WhatsNewTranslationsBase() = default;
12
13QString WhatsNewTranslationsBase::newFeaturesMD5() const
14{
15 QByteArray str;
16 for (const KLazyLocalizedString &l : lastNewFeatures()) {
17 str += l.untranslatedText();
18 }
19 if (str.isEmpty()) {
20 return {};
21 }
23 md5.addData(str);
24 return QLatin1StringView(md5.result().toBase64());
25}
folderdialogacltab.h
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:39:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.