QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
LogEntryTableModel Class Referenceabstract

#include <LogEntryTableModel.h>

+ Inheritance diagram for LogEntryTableModel:
+ Collaboration diagram for LogEntryTableModel:

Public Member Functions

int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
void multiData (const QModelIndex &index, QModelRoleDataSpan roleDataSpan) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
QHash< int, QByteArray > roleNames () const override
 

Protected Member Functions

virtual const LogEntryentryAt (int row) const =0
 Return entry at visible row, or nullptr if out of range.
 

Detailed Description

Base class for table models that display LogEntry data. Provides shared data(), headerData(), roleNames(), and columnCount() implementations. Subclasses supply entries via entryAt().

Definition at line 11 of file LogEntryTableModel.h.

Member Function Documentation

◆ columnCount()

int LogEntryTableModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

Definition at line 3 of file LogEntryTableModel.cc.

References LogEntry::ColumnCount.

◆ data()

QVariant LogEntryTableModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override

◆ entryAt()

virtual const LogEntry * LogEntryTableModel::entryAt ( int  row) const
protectedpure virtual

Return entry at visible row, or nullptr if out of range.

Implemented in LogModel, and LogStoreQueryModel.

Referenced by data(), and multiData().

◆ headerData()

QVariant LogEntryTableModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
override

Definition at line 39 of file LogEntryTableModel.cc.

References LogEntry::columnHeaderData().

◆ multiData()

void LogEntryTableModel::multiData ( const QModelIndex &  index,
QModelRoleDataSpan  roleDataSpan 
) const
override

◆ roleNames()

QHash< int, QByteArray > LogEntryTableModel::roleNames ( ) const
override

Definition at line 47 of file LogEntryTableModel.cc.

References LogEntry::roleNames().


The documentation for this class was generated from the following files: