List model implementation on captured output stream data.
More...
#include <CaptureListModel.h>
|
| CaptureListModel (QObject *parent=nullptr) |
| Constructor.
|
|
| ~CaptureListModel () override |
| Destructor.
|
|
bool | append (const QString &str) |
| Append string to the end of the list.
|
|
unsigned | setSource (unsigned ss) |
|
unsigned | source () const |
| Reports the stream being captured.
|
|
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
| Overridden from base class.
|
|
int | rowCount (const QModelIndex &parent) const override |
| Overridden from base class.
|
|
QVariant | data (const QModelIndex &index, int role) const override |
| Overridden from base class.
|
|
List model implementation on captured output stream data.
◆ StreamSource
Stream sources to capture.
Enumerator |
---|
ssCout | Captures the std::cout stream.
|
ssClog | Captures the std::clog stream.
|
ssCerr | Captures the std::cerr stream.
|
◆ CaptureListModel()
sf::CaptureListModel::CaptureListModel |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ ~CaptureListModel()
sf::CaptureListModel::~CaptureListModel |
( |
| ) |
|
|
override |
◆ append()
bool sf::CaptureListModel::append |
( |
const QString & |
str | ) |
|
Append string to the end of the list.
◆ data()
QVariant sf::CaptureListModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
Overridden from base class.
◆ headerData()
QVariant sf::CaptureListModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role |
|
) |
| const |
|
override |
Overridden from base class.
◆ rowCount()
int sf::CaptureListModel::rowCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
Overridden from base class.
◆ setSource()
unsigned sf::CaptureListModel::setSource |
( |
unsigned |
ss | ) |
|
Sets the stream to be captured.
◆ source()
unsigned sf::CaptureListModel::source |
( |
| ) |
const |
Reports the stream being captured.
The documentation for this class was generated from the following file: