Example #1
0
void CardFrame::setCard(CardInfoPtr card)
{
    if (info) {
        disconnect(info.data(), nullptr, this, nullptr);
    }

    info = std::move(card);

    if (info) {
        connect(info.data(), SIGNAL(destroyed()), this, SLOT(clearCard()));
    }

    text->setCard(info);
    pic->setCard(info);
}
Example #2
0
CardBase::~CardBase()
{
	clearCard();
}
Example #3
0
CardGeneral::~CardGeneral()
{
	clearCard();
}
Example #4
0
CardKing::~CardKing()
{
	clearCard();
}