mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-03-22 02:06:32 -05:00
Fix compilation with qt <= 5.2
This commit is contained in:
parent
2745cb2c62
commit
00a5ed0b79
|
|
@ -101,13 +101,12 @@ void SetsModel::swapRows(int oldRow, int newRow)
|
|||
|
||||
void SetsModel::sort(int column, Qt::SortOrder order)
|
||||
{
|
||||
QMap<QVariant, CardSet *> setMap;
|
||||
QMap<QString, CardSet *> setMap;
|
||||
int numRows = rowCount();
|
||||
int row;
|
||||
|
||||
for(row = 0; row < numRows; ++row)
|
||||
setMap.insertMulti(index(row, column).data(), sets.at(row));
|
||||
|
||||
setMap.insertMulti(index(row, column).data().toString(), sets.at(row));
|
||||
|
||||
QList<CardSet *> tmp = setMap.values();
|
||||
sets.clear();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user