mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-28 11:45:40 +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:
@@ -15,7 +15,7 @@
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include <QAbstractItemModel>
|
||||
#include "blackmisc/aviation/aircrafticaocodelist.h"
|
||||
#include "blackgui/models/listmodelbase.h"
|
||||
#include "blackgui/models/listmodeldbobjects.h"
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
@@ -23,7 +23,7 @@ namespace BlackGui
|
||||
{
|
||||
//! Airport list model
|
||||
class BLACKGUI_EXPORT CAircraftIcaoCodeListModel :
|
||||
public CListModelBase<BlackMisc::Aviation::CAircraftIcaoCode, BlackMisc::Aviation::CAircraftIcaoCodeList, true>
|
||||
public CListModelDbObjects<BlackMisc::Aviation::CAircraftIcaoCode, BlackMisc::Aviation::CAircraftIcaoCodeList, int, true>
|
||||
{
|
||||
public:
|
||||
//! Constructor
|
||||
|
||||
Reference in New Issue
Block a user