MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / appendPromotionCard

Method appendPromotionCard

ElaWidgetTools/ElaPromotionView.cpp:128–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void 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
145void ElaPromotionView::wheelEvent(QWheelEvent* event)
146{

Callers 1

T_CardMethod · 0.80

Calls 2

Tested by

no test coverage detected