10 : QWidget(parent)
12{
13 setupUi(this);
14
16 m_lblPreview->hide();
17 } else {
19 }
20
21 m_lblTitle->setText(QStringLiteral(
"<strong>%1</strong>").arg(
m_product.
title.toHtmlEscaped()));
23
25 QPushButton *btnResources = new QPushButton(i18n("Download Resource Bundles"));
26 m_lytDetails->addWidget(btnResources);
28
29 if (
m_product.
type == KisSupporterProductType::Subscription) {
30 QPushButton *btnManageSubscription = new QPushButton(i18n("Manage Subscription"));
31 m_lytDetails->addWidget(btnManageSubscription);
32 connect(btnManageSubscription,
33 &QPushButton::clicked,
34 this,
36 }
38 QPushButton *btnPurchase =
new QPushButton(product.
buttonText);
39 m_lytDetails->addWidget(btnPurchase);
41 }
42}
KisSupporterProductAvailability availability
KisSupporterProductType type