From 3b9cc6b0a45b2107a17391fa674a3c364c94a9da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Thu, 25 Aug 2016 00:14:51 +0100 Subject: [PATCH] Add aboutData for KPMcore. --- src/util/helpers.cpp | 18 ++++++++++++++++++ src/util/helpers.h | 4 ++++ 2 files changed, 22 insertions(+) diff --git a/src/util/helpers.cpp b/src/util/helpers.cpp index 0ac2f0c..b26f532 100644 --- a/src/util/helpers.cpp +++ b/src/util/helpers.cpp @@ -83,3 +83,21 @@ bool isMounted(const QString& deviceNode) } return false; } + +KAboutData aboutKPMcore() +{ + KAboutData aboutData( QStringLiteral("kpmcore"), + xi18nc("@title", "KPMcore"), QStringLiteral(VERSION), + i18n("Library for managing partitions"), + KAboutLicense::LGPL_V3, i18n( "© 2008-2016 KPMcore developers" ) ); + aboutData.setOrganizationDomain(QByteArray("kde.org")); + aboutData.setProductName(QByteArray("kpmcore")); + aboutData.setHomepage(QStringLiteral("https://quickgit.kde.org/?p=kpmcore.git")); + + aboutData.addAuthor(xi18nc("@info:credit", "Volker Lanz"), xi18nc("@info:credit", "Former maintainer of KDE Partition Manager")); + aboutData.addAuthor(xi18nc("@info:credit", "Andrius Štikonas"), xi18nc("@info:credit", "Maintainer"), QStringLiteral("andrius@stikonas.eu")); + aboutData.addAuthor(xi18n("Teo Mrnjavac"), i18nc("@info:credit", "Calamares maintainer"), QStringLiteral("teo@kde.org")); + aboutData.addAuthor(xi18n("Chantara Tith"), i18nc("@info:credit", "LVM support"), QStringLiteral("tith.chantara@gmail.com")); + + return aboutData; +} diff --git a/src/util/helpers.h b/src/util/helpers.h index aad5f78..39b95e8 100644 --- a/src/util/helpers.h +++ b/src/util/helpers.h @@ -23,6 +23,8 @@ #include "util/libpartitionmanagerexport.h" +class KAboutData; + class QString; class QPoint; class QTreeWidget; @@ -37,4 +39,6 @@ LIBKPMCORE_EXPORT bool checkAccessibleDevices(); LIBKPMCORE_EXPORT bool isMounted(const QString& deviceNode); +LIBKPMCORE_EXPORT KAboutData aboutKPMcore(); + #endif