mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
refs #641, improvements/fixes of orderable lists / models / views
* set sort order automatically to IndexOrder when changing order of items * call onChanged when model is changed and then update view (needed when model is changed directly, not via view) * support for digest signal so redundant updates can be avoided * renamed rowCountChanged (signal) to modelDataChanged - detecting row count changes only was useless * updated Doxygen / fixed typos
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
namespace BlackMisc
|
||||
{
|
||||
//! List of orderable IOrderable objects
|
||||
//! \remark Orerable objects shall implement BlackMisc::IOrderable
|
||||
template<class OBJ, class CONTAINER>
|
||||
class IOrderableList
|
||||
{
|
||||
@@ -71,8 +72,8 @@ namespace BlackMisc
|
||||
|
||||
extern template class BLACKMISC_EXPORT_TEMPLATE IOrderableList<BlackMisc::Simulation::CAircraftModel, BlackMisc::Simulation::CAircraftModelList>;
|
||||
extern template class BLACKMISC_EXPORT_TEMPLATE IOrderableList<BlackMisc::Simulation::CDistributor, BlackMisc::Simulation::CDistributorList>;
|
||||
|
||||
//! \endcond
|
||||
|
||||
} //namespace
|
||||
|
||||
#endif //guard
|
||||
|
||||
Reference in New Issue
Block a user