#include <eventhistory.h>
Public Member Functions | |
| void | addEvent (QString time, QString msg) |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| QVariant | data (const QModelIndex &index, int role) const |
| EventListModel (QObject *parent=0) | |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
Private Attributes | |
| QStringList | msgList |
| QStringList | timeList |
Definition at line 22 of file eventhistory.h.
| EventListModel::EventListModel | ( | QObject * | parent = 0 | ) | [inline] |
Definition at line 27 of file eventhistory.h.
| void EventListModel::addEvent | ( | QString | time, |
| QString | msg | ||
| ) |
Definition at line 73 of file eventhistory.cpp.
| int EventListModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 27 of file eventhistory.cpp.
| QVariant EventListModel::data | ( | const QModelIndex & | index, |
| int | role | ||
| ) | const |
Definition at line 33 of file eventhistory.cpp.
| QVariant EventListModel::headerData | ( | int | section, |
| Qt::Orientation | orientation, | ||
| int | role = Qt::DisplayRole |
||
| ) | const |
Definition at line 53 of file eventhistory.cpp.
| int EventListModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 21 of file eventhistory.cpp.
QStringList EventListModel::msgList [private] |
Definition at line 39 of file eventhistory.h.
QStringList EventListModel::timeList [private] |
Definition at line 38 of file eventhistory.h.