Made a start with the notification system. However need to figure out

how i want to handle multithreading and screen updates.
This commit is contained in:
eelke 2019-08-14 06:53:28 +02:00
parent 5494e5076b
commit 7f09d5fe07
7 changed files with 216 additions and 0 deletions

View file

@ -0,0 +1,25 @@
#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
{
}
QVariant NotificationModel::headerData(int section, Qt::Orientation orientation, int role) const
{
}