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:
Klaus Basan
2016-01-08 00:21:58 +01:00
parent 6770114f2c
commit f607b72821
17 changed files with 131 additions and 124 deletions

View File

@@ -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