Don't inline setUUID and mimic setName for AbstractCardItem.

This commit is contained in:
Lukas Brübach 2024-11-16 00:37:20 +01:00
parent fe7aae8534
commit 819c24683f
2 changed files with 14 additions and 4 deletions

View file

@ -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)

View file

@ -81,10 +81,7 @@ public:
{
return uuid;
}
void setUUID(QString _uuid)
{
uuid = _uuid;
}
void setUUID(const QString &_uuid = QString());
qreal getRealZValue() const
{
return realZValue;