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