mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 13:35:34 +08:00
refs #227, view/model for client class
* model * view * and GUI component which now encapsulates the user table view
This commit is contained in:
29
src/blackgui/clientlistmodel.h
Normal file
29
src/blackgui/clientlistmodel.h
Normal 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
|
||||
Reference in New Issue
Block a user