mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 10:55:32 +08:00
refs #568, specialized model class for models from DB
* support for keys * renamed to listmodeldbobjects (unified with views) * key type as template parameter * adjusted derived classes
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackmisc/aviation/liverylist.h"
|
||||
#include "blackgui/models/listmodelbase.h"
|
||||
#include "blackgui/models/listmodeldbobjects.h"
|
||||
#include <QAbstractItemModel>
|
||||
|
||||
namespace BlackGui
|
||||
@@ -23,10 +23,9 @@ namespace BlackGui
|
||||
{
|
||||
//! Distributor list model
|
||||
class BLACKGUI_EXPORT CLiveryListModel :
|
||||
public CListModelBase<BlackMisc::Aviation::CLivery, BlackMisc::Aviation::CLiveryList, true>
|
||||
public CListModelDbObjects<BlackMisc::Aviation::CLivery, BlackMisc::Aviation::CLiveryList, int, true>
|
||||
{
|
||||
public:
|
||||
|
||||
//! Constructor
|
||||
explicit CLiveryListModel(QObject *parent = nullptr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user