mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 15:25:34 +08:00
refs #661, prepared value objects for distributor sort order
This commit is contained in:
@@ -62,6 +62,8 @@ namespace BlackGui
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case MinimalWithOrder:
|
||||||
|
this->m_columns.addColumn(CColumn::orderColumn());
|
||||||
case Minimal:
|
case Minimal:
|
||||||
{
|
{
|
||||||
this->m_columns.addColumn(CColumn::standardString("key", CDistributor::IndexDbStringKey));
|
this->m_columns.addColumn(CColumn::standardString("key", CDistributor::IndexDbStringKey));
|
||||||
|
|||||||
@@ -37,7 +37,8 @@ namespace BlackGui
|
|||||||
NotSet,
|
NotSet,
|
||||||
Normal,
|
Normal,
|
||||||
NormalWithOrder,
|
NormalWithOrder,
|
||||||
Minimal
|
Minimal,
|
||||||
|
MinimalWithOrder
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Constructor
|
//! Constructor
|
||||||
|
|||||||
@@ -207,6 +207,9 @@ namespace BlackMisc
|
|||||||
//! Get distributor
|
//! Get distributor
|
||||||
const CDistributor &getDistributor() const { return m_distributor; }
|
const CDistributor &getDistributor() const { return m_distributor; }
|
||||||
|
|
||||||
|
//! Get distributor`s order value
|
||||||
|
int getDistributorOrder() const { return m_distributor.getOrder(); }
|
||||||
|
|
||||||
//! Set distributor
|
//! Set distributor
|
||||||
void setDistributor(const CDistributor &distributor) { m_distributor = distributor; }
|
void setDistributor(const CDistributor &distributor) { m_distributor = distributor; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user