mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 09:33:57 -07:00
move method
This commit is contained in:
parent
01e8e4d589
commit
08e8d70e10
1 changed files with 6 additions and 1 deletions
|
|
@ -250,7 +250,6 @@ public:
|
||||||
[[nodiscard]] int rowCount(const QModelIndex &parent) const override;
|
[[nodiscard]] int rowCount(const QModelIndex &parent) const override;
|
||||||
[[nodiscard]] int columnCount(const QModelIndex & /*parent*/ = QModelIndex()) const override;
|
[[nodiscard]] int columnCount(const QModelIndex & /*parent*/ = QModelIndex()) const override;
|
||||||
[[nodiscard]] QVariant data(const QModelIndex &index, int role) const override;
|
[[nodiscard]] QVariant data(const QModelIndex &index, int role) const override;
|
||||||
void emitBackgroundUpdates(const QModelIndex &parent);
|
|
||||||
[[nodiscard]] QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
[[nodiscard]] QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
||||||
[[nodiscard]] QModelIndex index(int row, int column, const QModelIndex &parent) const override;
|
[[nodiscard]] QModelIndex index(int row, int column, const QModelIndex &parent) const override;
|
||||||
[[nodiscard]] QModelIndex parent(const QModelIndex &index) const override;
|
[[nodiscard]] QModelIndex parent(const QModelIndex &index) const override;
|
||||||
|
|
@ -258,6 +257,12 @@ public:
|
||||||
bool setData(const QModelIndex &index, const QVariant &value, int role) override;
|
bool setData(const QModelIndex &index, const QVariant &value, int role) override;
|
||||||
bool removeRows(int row, int count, const QModelIndex &parent) override;
|
bool removeRows(int row, int count, const QModelIndex &parent) override;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Recursively emits the dataChanged signal for all child nodes.
|
||||||
|
* @param parent The parent node
|
||||||
|
*/
|
||||||
|
void emitBackgroundUpdates(const QModelIndex &parent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Finds a card by name, zone, and optional identifiers.
|
* @brief Finds a card by name, zone, and optional identifiers.
|
||||||
* @param cardName The card's name.
|
* @param cardName The card's name.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue