mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +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:
@@ -23,7 +23,7 @@ namespace BlackGui
|
||||
{
|
||||
//! Distributor list model
|
||||
class BLACKGUI_EXPORT CDistributorListModel :
|
||||
public CListModelDbObjects<BlackMisc::Simulation::CDistributor, BlackMisc::Simulation::CDistributorList, QString, true>
|
||||
public COrderableListModelDbObjects<BlackMisc::Simulation::CDistributor, BlackMisc::Simulation::CDistributorList, QString, true>
|
||||
{
|
||||
public:
|
||||
//! What kind of stations
|
||||
@@ -31,6 +31,7 @@ namespace BlackGui
|
||||
{
|
||||
NotSet,
|
||||
Normal,
|
||||
NormalWithOrder,
|
||||
Minimal
|
||||
};
|
||||
|
||||
@@ -46,6 +47,9 @@ namespace BlackGui
|
||||
//! Mode
|
||||
DistributorMode getDistributorMode() const { return this->m_distributorMode; }
|
||||
|
||||
//! \copydoc BlackGui::Models::CListModelBaseNonTemplate::isOrderable
|
||||
virtual bool isOrderable() const override { return true; }
|
||||
|
||||
private:
|
||||
DistributorMode m_distributorMode = NotSet;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user