Commit 075c743a authored by Fabio Bas's avatar Fabio Bas
Browse files

Sets: case insensitive sorting

parent 53de2db8
...@@ -18,7 +18,7 @@ public: ...@@ -18,7 +18,7 @@ public:
void setImport(bool _import) { import = _import; } void setImport(bool _import) { import = _import; }
SetToDownload(const QString &_shortName, const QString &_longName, const QVariant &_cards, bool _import) SetToDownload(const QString &_shortName, const QString &_longName, const QVariant &_cards, bool _import)
: shortName(_shortName), longName(_longName), cards(_cards), import(_import) { } : shortName(_shortName), longName(_longName), cards(_cards), import(_import) { }
bool operator<(const SetToDownload &set) const { return longName < set.longName; } bool operator<(const SetToDownload &set) const { return longName.compare(set.longName, Qt::CaseInsensitive) < 0; }
}; };
class OracleImporter : public CardDatabase { class OracleImporter : public CardDatabase {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment