mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-21 09:52:16 -07:00
Don't inline setUUID and mimic setName for AbstractCardItem.
This commit is contained in:
parent
fe7aae8534
commit
819c24683f
2 changed files with 14 additions and 4 deletions
|
|
@ -188,6 +188,19 @@ void AbstractCardItem::setName(const QString &_name)
|
|||
cardInfoUpdated();
|
||||
}
|
||||
|
||||
void AbstractCardItem::setUUID(const QString &_uuid)
|
||||
{
|
||||
if (uuid == _uuid)
|
||||
return;
|
||||
|
||||
emit deleteCardInfoPopup(name);
|
||||
if (info)
|
||||
disconnect(info.data(), nullptr, this, nullptr);
|
||||
uuid = _uuid;
|
||||
|
||||
cardInfoUpdated();
|
||||
}
|
||||
|
||||
void AbstractCardItem::setHovered(bool _hovered)
|
||||
{
|
||||
if (isHovered == _hovered)
|
||||
|
|
|
|||
|
|
@ -81,10 +81,7 @@ public:
|
|||
{
|
||||
return uuid;
|
||||
}
|
||||
void setUUID(QString _uuid)
|
||||
{
|
||||
uuid = _uuid;
|
||||
}
|
||||
void setUUID(const QString &_uuid = QString());
|
||||
qreal getRealZValue() const
|
||||
{
|
||||
return realZValue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue