15using namespace swift::misc::network;
16using namespace swift::misc::aviation;
27 if (m_userMode == userMode)
return;
28 m_userMode = userMode;
39 { CUser::IndexHomebase, CAirportIcaoCode::IndexString }));
57 default: qFatal(
"Wrong mode");
break;
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.
CListModelBase(const QString &translationContext, QObject *parent=nullptr)
virtual bool setSortColumnByPropertyIndex(const swift::misc::CPropertyIndex &propertyIndex)
Set column for sorting.
QModelIndex parent(const QModelIndex &child) const final
CColumns m_columns
columns metadata
Qt::SortOrder m_sortOrder
sort order (asc/desc)
CUserListModel(UserMode userMode, QObject *parent=nullptr)
Constructor.
UserMode
What level of detail.
void setUserMode(UserMode userMode)
Set station mode.
Models to be used with views, mainly QTableView.