mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
Require Qt4 >=4.8.0; remove some ifdefs on qt version
This commit is contained in:
parent
c4458b16b2
commit
2354ed6909
4 changed files with 1 additions and 19 deletions
|
|
@ -30,9 +30,7 @@ DeckListModel::~DeckListModel()
|
|||
|
||||
void DeckListModel::rebuildTree()
|
||||
{
|
||||
#if QT_VERSION >= 0x050000
|
||||
beginResetModel();
|
||||
#endif
|
||||
|
||||
root->clearTree();
|
||||
InnerDecklistNode *listRoot = deckList->getRoot();
|
||||
|
|
@ -59,11 +57,7 @@ void DeckListModel::rebuildTree()
|
|||
}
|
||||
}
|
||||
|
||||
#if QT_VERSION < 0x050000
|
||||
reset();
|
||||
#else
|
||||
endResetModel();
|
||||
#endif
|
||||
}
|
||||
|
||||
int DeckListModel::rowCount(const QModelIndex &parent) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue