#include <FormattedTextModel.h>
|
| FormattedTextModel (QObject *pParent, const QStringList &pLines=QStringList()) |
|
int | rowCount (const QModelIndex &pIndex=QModelIndex()) const override |
|
QVariant | data (const QModelIndex &pIndex, int pRole=Qt::DisplayRole) const override |
|
QHash< int, QByteArray > | roleNames () const override |
|
Q_INVOKABLE bool | loadSeveral (const QStringList &pFilepaths) |
|
◆ FormattedTextRoles
Aufzählungswerte |
---|
ContentRole | |
TypeRole | |
◆ LineType
Aufzählungswerte |
---|
EMPTY | |
HEADER | |
SECTION | |
SUBSECTION | |
REGULARTEXT | |
LISTITEM | |
◆ FormattedTextModel()
FormattedTextModel::FormattedTextModel |
( |
QObject * | pParent, |
|
|
const QStringList & | pLines = QStringList() ) |
|
explicit |
◆ data()
QVariant FormattedTextModel::data |
( |
const QModelIndex & | pIndex, |
|
|
int | pRole = Qt::DisplayRole ) const |
|
nodiscardoverride |
◆ loadSeveral()
bool FormattedTextModel::loadSeveral |
( |
const QStringList & | pFilepaths | ) |
|
|
nodiscard |
◆ roleNames()
QHash< int, QByteArray > FormattedTextModel::roleNames |
( |
| ) |
const |
|
nodiscardoverride |
◆ rowCount()
int FormattedTextModel::rowCount |
( |
const QModelIndex & | pIndex = QModelIndex() | ) |
const |
|
nodiscardoverride |
◆ ::test_FormattedTextModel
friend class ::test_FormattedTextModel |
|
friend |
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: