Ported cockatrice

This commit is contained in:
Fabio Bas 2014-06-24 19:13:47 +02:00
parent bab340f7b7
commit 6dbdaafb33
22 changed files with 181 additions and 16 deletions

View file

@ -30,6 +30,10 @@ DeckListModel::~DeckListModel()
void DeckListModel::rebuildTree()
{
#if QT_VERSION >= 0x050000
beginResetModel();
#endif
root->clearTree();
InnerDecklistNode *listRoot = deckList->getRoot();
for (int i = 0; i < listRoot->size(); i++) {
@ -55,7 +59,11 @@ void DeckListModel::rebuildTree()
}
}
#if QT_VERSION < 0x050000
reset();
#else
endResetModel();
#endif
}
int DeckListModel::rowCount(const QModelIndex &parent) const