eVaf
eVaf::LogView::Internal::Model Class Reference

Data model for the log view widget. More...

#include <LogView/logview.h>

Classes

struct  Message
 One logger message. More...
 

Signals

void messageAdded (QModelIndex const &index)
 

Public Member Functions

void addMessage (Common::iLogger::Severity severity, QString const &text, QString const &where)
 
bool copyToClipboard (QModelIndex const &index)
 
virtual QVariant data (QModelIndex const &index, int role=Qt::DisplayRole) const
 
QString details (QModelIndex const &index) const
 
QString errorString () const
 
Message const & messageAt (int idx) const
 
 Model (QObject *parent=0)
 
virtual int rowCount (QModelIndex const &parent=QModelIndex()) const
 
bool saveToFile (QString const &fileName)
 

Detailed Description

Data model for the log view widget.

Definition at line 58 of file logview.h.

Constructor & Destructor Documentation

eVaf::LogView::Internal::Model::Model ( QObject parent = 0)

Member Function Documentation

void eVaf::LogView::Internal::Model::addMessage ( Common::iLogger::Severity  severity,
QString const &  text,
QString const &  where 
)
bool eVaf::LogView::Internal::Model::copyToClipboard ( QModelIndex const &  index)
virtual QVariant eVaf::LogView::Internal::Model::data ( QModelIndex const &  index,
int  role = Qt::DisplayRole 
) const
virtual
QString eVaf::LogView::Internal::Model::details ( QModelIndex const &  index) const
QString eVaf::LogView::Internal::Model::errorString ( ) const
inline

Definition at line 98 of file logview.h.

void eVaf::LogView::Internal::Model::messageAdded ( QModelIndex const &  index)
signal
Message const& eVaf::LogView::Internal::Model::messageAt ( int  idx) const
inline

Definition at line 84 of file logview.h.

virtual int eVaf::LogView::Internal::Model::rowCount ( QModelIndex const &  parent = QModelIndex()) const
inlinevirtual

Definition at line 86 of file logview.h.

bool eVaf::LogView::Internal::Model::saveToFile ( QString const &  fileName)

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