mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-08 03:35:35 +08:00
refs #300, moved models in own namespace and directory
This commit is contained in:
32
src/blackgui/models/statusmessagelistmodel.h
Normal file
32
src/blackgui/models/statusmessagelistmodel.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef BLACKGUI_STATUSMESSAGELISTMODEL_H
|
||||
#define BLACKGUI_STATUSMESSAGELISTMODEL_H
|
||||
|
||||
#include <QAbstractItemModel>
|
||||
#include <QDBusConnection>
|
||||
#include "blackmisc/statusmessagelist.h"
|
||||
#include "blackgui/models/listmodelbase.h"
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Models
|
||||
{
|
||||
/*!
|
||||
* Server list model
|
||||
*/
|
||||
class CStatusMessageListModel : public CListModelBase<BlackMisc::CStatusMessage, BlackMisc::CStatusMessageList>
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Constructor
|
||||
explicit CStatusMessageListModel(QObject *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
virtual ~CStatusMessageListModel() {}
|
||||
|
||||
//! \copydoc CListModelBase::data
|
||||
QVariant data(const QModelIndex &modelIndex, int role = Qt::DisplayRole) const;
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user