| 126 | } |
| 127 | |
| 128 | void ElaPromotionView::appendPromotionCard(ElaPromotionCard* card) |
| 129 | { |
| 130 | Q_D(ElaPromotionView); |
| 131 | if (!card || d->_promotionCardList.contains(card)) |
| 132 | { |
| 133 | return; |
| 134 | } |
| 135 | card->setMinimumSize(0, 0); |
| 136 | card->setMaximumSize(10000, 10000); |
| 137 | card->setParent(this); |
| 138 | d->_promotionCardList.append(card); |
| 139 | connect(card, &ElaPromotionCard::promotionCardClicked, this, [=]() { |
| 140 | d->onPromotionCardClicked(card); |
| 141 | }); |
| 142 | d->_updatePromotionCardGeometry(); |
| 143 | } |
| 144 | |
| 145 | void ElaPromotionView::wheelEvent(QWheelEvent* event) |
| 146 | { |
no test coverage detected