2019-08-14 06:53:28 +02:00
|
|
|
|
#include "NotificationModel.h"
|
|
|
|
|
|
#include "NotificationService.h"
|
|
|
|
|
|
|
|
|
|
|
|
NotificationModel::NotificationModel()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int NotificationModel::rowCount(const QModelIndex &parent) const
|
|
|
|
|
|
{
|
|
|
|
|
|
return m_notifications->count();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int NotificationModel::columnCount(const QModelIndex &) const
|
|
|
|
|
|
{
|
|
|
|
|
|
return static_cast<int>(Col::Count);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
QVariant NotificationModel::data(const QModelIndex &index, int role) const
|
|
|
|
|
|
{
|
2019-08-15 16:18:47 +02:00
|
|
|
|
return {};
|
2019-08-14 06:53:28 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
QVariant NotificationModel::headerData(int section, Qt::Orientation orientation, int role) const
|
|
|
|
|
|
{
|
2019-08-15 16:18:47 +02:00
|
|
|
|
return {};
|
2019-08-14 06:53:28 +02:00
|
|
|
|
}
|