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:
parent
5494e5076b
commit
7f09d5fe07
7 changed files with 216 additions and 0 deletions
25
pglab/NotificationModel.cpp
Normal file
25
pglab/NotificationModel.cpp
Normal 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
|
||||
{
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue