diff --git a/src/kwatchgnupg/aboutdata.cpp b/src/kwatchgnupg/aboutdata.cpp index 8b6c4eaff..59d6474bd 100644 --- a/src/kwatchgnupg/aboutdata.cpp +++ b/src/kwatchgnupg/aboutdata.cpp @@ -1,54 +1,54 @@ /* aboutdata.cpp This file is part of Kleopatra, the KDE keymanager SPDX-FileCopyrightText: 2004 Klarälvdalens Datakonsult AB SPDX-License-Identifier: GPL-2.0-or-later */ #include #include "aboutdata.h" #include -#include "ki18n_version.h" +#include #if KI18N_VERSION >= QT_VERSION_CHECK(5, 89, 0) -#include +#include #undef I18N_NOOP #define I18N_NOOP kli18n #endif struct about_data { #if KI18N_VERSION < QT_VERSION_CHECK(5, 89, 0) const char *name; const char *desc; #else const KLazyLocalizedString name; const KLazyLocalizedString desc; #endif const char *email; const char *web; }; static const about_data authors[] = { { I18N_NOOP("Steffen Hansen"), I18N_NOOP("Original Author"), "hansen@kde.org", nullptr }, }; AboutData::AboutData() : KAboutData(QStringLiteral("kwatchgnupg"), i18n("KWatchGnuPG"), QStringLiteral(KWATCHGNUPG_VERSION_STRING), i18n("GnuPG log viewer"), KAboutLicense::GPL, i18n("(c) 2004 Klar\xC3\xA4lvdalens Datakonsult AB\n")) { using ::authors; //using ::credits; for (unsigned int i = 0; i < sizeof authors / sizeof * authors; ++i) { #if KI18N_VERSION < QT_VERSION_CHECK(5, 89, 0) addAuthor(i18n(authors[i].name), i18n(authors[i].desc), QLatin1String(authors[i].email), QLatin1String(authors[i].web)); #else addAuthor(KLocalizedString(authors[i].name).toString(), KLocalizedString(authors[i].desc).toString(), QLatin1String(authors[i].email), QLatin1String(authors[i].web)); #endif } }