Fix compilation with qt <= 5.2
This commit is contained in:
parent
2745cb2c62
commit
00a5ed0b79
1 changed files with 2 additions and 3 deletions
|
@ -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 a new issue