refs #227, view/model for client class

* model
* view
* and GUI component which now encapsulates the user table view
This commit is contained in:
Klaus Basan
2014-05-06 13:23:47 +02:00
parent 31b83e0f1e
commit 4686da4827
7 changed files with 296 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
#ifndef BLACKGUI_CLIENTLISTMODEL_H
#define BLACKGUI_CLIENTLISTMODEL_H
#include <QAbstractItemModel>
#include "blackmisc/nwclientlist.h"
#include "blackgui/listmodelbase.h"
namespace BlackGui
{
/*!
* \brief Server list model
*/
class CClientListModel : public CListModelBase<BlackMisc::Network::CClient, BlackMisc::Network::CClientList>
{
public:
//! \brief Constructor
explicit CClientListModel(QObject *parent = nullptr);
//! \brief Destructor
virtual ~CClientListModel() {}
//! \copydoc CListModelBase::data
QVariant data(const QModelIndex &modelIndex, int role = Qt::DisplayRole) const;
};
}
#endif // guard