#include <LogPanel_Panel.h>
Inherits QAbstractTableModel.
Public Member Functions | |
ListLogDataModel (QObject *pParent=nullptr) | |
void | AppendLine (Logging::LogLine &source) |
call this with each line you have and want to add to the log (at any time, but from the same thread as the object belongs to) | |
void | CommitAdd () |
After appending line(s) they will not appear until you call CommitAdd. | |
void | Clear () |
virtual int | rowCount (const QModelIndex &) const |
virtual int | columnCount (const QModelIndex &) const |
virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
virtual QVariant | data (const QModelIndex &, int role) const |
this is a list-based (uses a vector) data model its meant for static or ever-growing data that we do not want to discard older lines for. For example if you are forensically examining a previously-captured file.