mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
refs #641, support for IOrderable in specialized views/models
* menu to order objects per drag and drop * changed model/views to specialized model/views
This commit is contained in:
@@ -18,7 +18,7 @@ namespace BlackGui
|
||||
namespace Models
|
||||
{
|
||||
CDistributorListModel::CDistributorListModel(QObject *parent) :
|
||||
CListModelDbObjects("ModelDistributorList", parent)
|
||||
COrderableListModelDbObjects("ModelDistributorList", parent)
|
||||
{
|
||||
this->setDistributorMode(Normal);
|
||||
|
||||
@@ -36,6 +36,8 @@ namespace BlackGui
|
||||
this->m_columns.clear();
|
||||
switch (distributorMode)
|
||||
{
|
||||
case NormalWithOrder:
|
||||
this->m_columns.addColumn(CColumn::orderColumn());
|
||||
case NotSet:
|
||||
case Normal:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user