18 using namespace swift::misc::aviation;
22 CAirlineIcaoCodeListModel::CAirlineIcaoCodeListModel(QObject *parent)
29 CColumn col(
"airline", CAirlineIcaoCode::IndexIcon);
42 col =
CColumn(
"country", { CAirlineIcaoCode::IndexAirlineCountry, CCountry::IndexIcon });
53 (void)QT_TRANSLATE_NOOP(
"ModelAirlineIcaoList",
"ICAO");
54 (void)QT_TRANSLATE_NOOP(
"ModelAirlineIcaoList",
"operating");
55 (void)QT_TRANSLATE_NOOP(
"ModelAirlineIcaoList",
"name");
56 (void)QT_TRANSLATE_NOOP(
"ModelAirlineIcaoList",
"country");
57 (void)QT_TRANSLATE_NOOP(
"ModelAirlineIcaoList",
"changed");
static CColumn standardValueObject(const QString &headerName, const swift::misc::CPropertyIndex &propertyIndex, int alignment=CDefaultFormatter::alignDefault())
Get a standard value object formatted column.
static CColumn standardString(const QString &headerName, const swift::misc::CPropertyIndex &propertyIndex, int alignment=CDefaultFormatter::alignDefault())
Get a standard string object formatted column.
void setSortPropertyIndex(const swift::misc::CPropertyIndex &propertyIndex)
Property index used when sorting, option alternative.
void addColumn(const CColumn &column)
Add a column.
virtual bool setSortColumnByPropertyIndex(const swift::misc::CPropertyIndex &propertyIndex)
Set column for sorting.
CColumns m_columns
columns metadata
Qt::SortOrder m_sortOrder
sort order (asc/desc)
List model for DB objects.
Models to be used with views, mainly QTableView.
Free functions in swift::misc.