diff options
Diffstat (limited to 'sigmodr/tree/TreeModel.cpp')
| -rw-r--r-- | sigmodr/tree/TreeModel.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sigmodr/tree/TreeModel.cpp b/sigmodr/tree/TreeModel.cpp index 82dd7ec8..5db31e06 100644 --- a/sigmodr/tree/TreeModel.cpp +++ b/sigmodr/tree/TreeModel.cpp @@ -126,3 +126,10 @@ Qt::DropActions TreeModel::supportedDropActions() const { return Qt::CopyAction | Qt::MoveAction; } + +void TreeModel::addGame(Sigmod::Game* game) +{ + beginInsertRows(index(-1, -1, QModelIndex()), m_root->childCount(), m_root->childCount()); + m_root->addGame(game); + endInsertRows(); +} |
