mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-31 16:10:33 -07:00
Fix compilation with qt <= 5.2
This commit is contained in:
@@ -101,13 +101,12 @@ void SetsModel::swapRows(int oldRow, int newRow)
|
|||||||
|
|
||||||
void SetsModel::sort(int column, Qt::SortOrder order)
|
void SetsModel::sort(int column, Qt::SortOrder order)
|
||||||
{
|
{
|
||||||
QMap<QVariant, CardSet *> setMap;
|
QMap<QString, CardSet *> setMap;
|
||||||
int numRows = rowCount();
|
int numRows = rowCount();
|
||||||
int row;
|
int row;
|
||||||
|
|
||||||
for(row = 0; row < numRows; ++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();
|
QList<CardSet *> tmp = setMap.values();
|
||||||
sets.clear();
|
sets.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user