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

Method setCurrentIndex

ElaWidgetTools/ElaPromotionView.cpp:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 Q_D(const ElaPromotionView);
73 return d->_pCardCollapseWidth;
74}
75
76void ElaPromotionView::setCurrentIndex(int index)
77{
78 Q_D(ElaPromotionView);
79 if (index < 0 || index >= d->_promotionCardList.count())
80 {
81 return;
82 }
83 d->onPromotionCardClicked(d->_promotionCardList[index]);
84}
85

Callers

nothing calls this directly

Calls 2

countMethod · 0.80

Tested by

no test coverage detected