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