18 CCountryListModel::CCountryListModel(QObject *parent) :
CListModelDbObjects(
"CountryListModel", parent)
20 CColumn col(
"country", CCountry::IndexIcon);
35 (void)QT_TRANSLATE_NOOP(
"ModelCountryList",
"cty.");
36 (void)QT_TRANSLATE_NOOP(
"ModelCountryList",
"country");
37 (void)QT_TRANSLATE_NOOP(
"ModelCountryList",
"ISO2");
38 (void)QT_TRANSLATE_NOOP(
"ModelCountryList",
"ISO3");
39 (void)QT_TRANSLATE_NOOP(
"ModelCountryList",
"name");
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.