mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 17:44:01 -07:00
delete signals
This commit is contained in:
parent
7eddd049f1
commit
a4e2d43cb6
2 changed files with 0 additions and 15 deletions
|
|
@ -713,7 +713,6 @@ QString DeckList::getDeckHash() const
|
||||||
void DeckList::refreshDeckHash()
|
void DeckList::refreshDeckHash()
|
||||||
{
|
{
|
||||||
cachedDeckHash = QString();
|
cachedDeckHash = QString();
|
||||||
emit deckHashChanged();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -110,10 +110,6 @@ public:
|
||||||
* - Owns the root `InnerDecklistNode` tree.
|
* - Owns the root `InnerDecklistNode` tree.
|
||||||
* - Owns `SideboardPlan` instances stored in `sideboardPlans`.
|
* - Owns `SideboardPlan` instances stored in `sideboardPlans`.
|
||||||
*
|
*
|
||||||
* ### Signals:
|
|
||||||
* - @c deckHashChanged() — emitted when the deck contents change.
|
|
||||||
* - @c deckTagsChanged() — emitted when tags are added/removed.
|
|
||||||
*
|
|
||||||
* ### Example workflow:
|
* ### Example workflow:
|
||||||
* ```
|
* ```
|
||||||
* DeckList deck;
|
* DeckList deck;
|
||||||
|
|
@ -180,13 +176,6 @@ protected:
|
||||||
return cardName;
|
return cardName;
|
||||||
}
|
}
|
||||||
|
|
||||||
signals:
|
|
||||||
/// Emitted when the deck hash changes.
|
|
||||||
void deckHashChanged();
|
|
||||||
/// Emitted when the deck tags are modified.
|
|
||||||
void deckTagsChanged();
|
|
||||||
|
|
||||||
public slots:
|
|
||||||
/// @name Metadata setters
|
/// @name Metadata setters
|
||||||
///@{
|
///@{
|
||||||
void setName(const QString &_name = QString())
|
void setName(const QString &_name = QString())
|
||||||
|
|
@ -200,17 +189,14 @@ public slots:
|
||||||
void setTags(const QStringList &_tags = QStringList())
|
void setTags(const QStringList &_tags = QStringList())
|
||||||
{
|
{
|
||||||
metadata.tags = _tags;
|
metadata.tags = _tags;
|
||||||
emit deckTagsChanged();
|
|
||||||
}
|
}
|
||||||
void addTag(const QString &_tag)
|
void addTag(const QString &_tag)
|
||||||
{
|
{
|
||||||
metadata.tags.append(_tag);
|
metadata.tags.append(_tag);
|
||||||
emit deckTagsChanged();
|
|
||||||
}
|
}
|
||||||
void clearTags()
|
void clearTags()
|
||||||
{
|
{
|
||||||
metadata.tags.clear();
|
metadata.tags.clear();
|
||||||
emit deckTagsChanged();
|
|
||||||
}
|
}
|
||||||
void setBannerCard(const CardRef &_bannerCard = {})
|
void setBannerCard(const CardRef &_bannerCard = {})
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue