1 | /* |
2 | This file is part of the KDE libraries |
3 | SPDX-FileCopyrightText: 2019 Friedrich W. H. Kossebau <kossebau@kde.org> |
4 | |
5 | SPDX-License-Identifier: LGPL-2.0-only |
6 | */ |
7 | |
8 | #ifndef KABSTRACTABOUTDIALOG_P_H |
9 | #define KABSTRACTABOUTDIALOG_P_H |
10 | |
11 | #include <KAboutData> |
12 | |
13 | class QDialog; |
14 | class QWidget; |
15 | class QIcon; |
16 | |
17 | /** |
18 | * @internal |
19 | * |
20 | * Private base class implementing util methods for assembling an About dialog. |
21 | */ |
22 | class KAbstractAboutDialogPrivate |
23 | { |
24 | public: |
25 | KAbstractAboutDialogPrivate() = default; |
26 | ~KAbstractAboutDialogPrivate() = default; |
27 | |
28 | public: |
29 | QWidget *createTitleWidget(const QIcon &icon, const QString &displayName, const QString &version, QWidget *parent); |
30 | QWidget *createAboutWidget(const QString &shortDescription, |
31 | const QString &otherText, |
32 | const QString ©rightStatement, |
33 | const QString &homepage, |
34 | const QList<KAboutLicense> &licenses, |
35 | QWidget *parent); |
36 | QWidget *createComponentWidget(const QList<KAboutComponent> &components, QWidget *parent); |
37 | QWidget *createAuthorsWidget(const QList<KAboutPerson> &authors, |
38 | bool customAuthorTextEnabled, |
39 | const QString &customAuthorRichText, |
40 | const QString &bugAddress, |
41 | QWidget *parent); |
42 | QWidget *createCreditWidget(const QList<KAboutPerson> &credits, QWidget *parent); |
43 | QWidget *createTranslatorsWidget(const QList<KAboutPerson> &translators, QWidget *parent); |
44 | void createForm(QWidget *titleWidget, QWidget *tabWidget, QDialog *dialog); |
45 | }; |
46 | |
47 | #endif |
48 | |