Krita Source Code Documentation
Loading...
Searching...
No Matches
KisDonationManagementDialog.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: GPL-3.0-or-later
3 */
4#ifndef __KISDONATIONMANAGEMENTDIALOG_H_
5#define __KISDONATIONMANAGEMENTDIALOG_H_
6
7#include <QDialog>
8#include <QVector>
9
10#include "kritaui_export.h"
11#include "ui_KisDonationManagementDialog.h"
12#include <KisAndroidDonations.h>
13#include <KisSupporterProduct.h>
14
15class KRITAUI_EXPORT KisDonationManagementDialog : public QDialog, public Ui::KisDonationManagementDialog
16{
17 Q_OBJECT
18public:
19 explicit KisDonationManagementDialog(QWidget *parent = nullptr);
20
21 void reshow();
22
23Q_SIGNALS:
25
26private Q_SLOTS:
27 void slotShowOverview();
28 void slotUpdateCurrentProducts();
29
30private:
31 void addProductWidgets(const QString &heading, const QVector<KisSupporterProduct> &products);
32
33 void addProductSeparator();
34
35 static bool isProductIdsEqual(const QVector<KisSupporterProduct> &a, const QVector<KisSupporterProduct> &b);
36
40};
41
42#endif
QVector< KisSupporterProduct > m_availableProducts
QVector< KisSupporterProduct > m_ownedProducts