mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +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/countrylist.h"
|
||||
#include "blackgui/models/listmodelbase.h"
|
||||
#include "blackgui/models/listmodeldbobjects.h"
|
||||
#include <QAbstractItemModel>
|
||||
|
||||
namespace BlackGui
|
||||
@@ -23,7 +23,7 @@ namespace BlackGui
|
||||
{
|
||||
//! Country list model
|
||||
class BLACKGUI_EXPORT CCountryListModel :
|
||||
public CListModelBase<BlackMisc::CCountry, BlackMisc::CCountryList, true>
|
||||
public CListModelDbObjects<BlackMisc::CCountry, BlackMisc::CCountryList, QString, true>
|
||||
{
|
||||
public:
|
||||
//! Constructor
|
||||
|
||||
Reference in New Issue
Block a user