Ref T226, country selector

This commit is contained in:
Klaus Basan
2018-01-31 08:35:53 +01:00
parent bb65b7c280
commit 37ff498e7e
5 changed files with 237 additions and 12 deletions

View File

@@ -53,18 +53,23 @@ namespace BlackMisc
CCountry findFirstByAlias(const QString &alias) const;
//! ISO/name string list
QStringList toIsoNameList() const;
QStringList toIsoNameList(bool sorted = false) const;
//! Name/ISO string list
QStringList toNameIsoList() const;
QStringList toNameIsoList(bool sorted = false) const;
//! Name string list
QStringList toNameList() const;
QStringList toNameList(bool sorted = false) const;
//! All ISO codes
QStringList toIsoList(bool sorted = false) const;
//! All ISO 3 codes
QStringList toIso3List(bool sorted = false) const;
//! From our database JSON format
static CCountryList fromDatabaseJson(const QJsonArray &array);
};
} //namespace
Q_DECLARE_METATYPE(BlackMisc::CCountryList)