17 using namespace swift::misc::simulation;
21 CDistributorListModel::CDistributorListModel(QObject *parent)
27 (void)QT_TRANSLATE_NOOP(
"ModelDistributorList",
"key");
28 (void)QT_TRANSLATE_NOOP(
"ModelDistributorList",
"description");
29 (void)QT_TRANSLATE_NOOP(
"ModelDistributorList",
"alias1");
30 (void)QT_TRANSLATE_NOOP(
"ModelDistributorList",
"alias2");
35 if (m_distributorMode == distributorMode) {
return; }
36 m_distributorMode = distributorMode;
38 switch (distributorMode)
49 { CDistributor::IndexSimulator, CSimulatorInfo::IndexString }));
70 default: qFatal(
"Wrong mode");
break;
static CColumn standardString(const QString &headerName, const swift::misc::CPropertyIndex &propertyIndex, int alignment=CDefaultFormatter::alignDefault())
Get a standard string object formatted column.
static CColumn orderColumn(const swift::misc::CPropertyIndex &propertyIndex=swift::misc::CPropertyIndexRef::GlobalIndexIOrderable, int alignment=CDefaultFormatter::alignRightVCenter())
Get a standard string object formatted column.
void addColumn(const CColumn &column)
Add a column.
void setDistributorMode(DistributorMode distributorMode)
Set mode.
DistributorMode
What kind of stations.
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.