#include <FormattedTextModel.h>
|
| FormattedTextModel (QObject *pParent=nullptr) |
|
| FormattedTextModel (const QStringList &pLines) |
|
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 | load (const QString &pFilepath) |
|
Q_INVOKABLE bool | loadSeveral (const QStringList &pFilepaths) |
|
◆ FormattedTextRoles
Aufzählungswerte |
---|
ContentRole | |
LineTypeRole | |
◆ LineType
Aufzählungswerte |
---|
EMPTY | |
HEADER | |
SECTION | |
SUBSECTION | |
REGULARTEXT | |
LISTITEM | |
◆ FormattedTextModel() [1/2]
FormattedTextModel::FormattedTextModel |
( |
QObject * |
pParent = nullptr | ) |
|
|
explicit |
◆ FormattedTextModel() [2/2]
FormattedTextModel::FormattedTextModel |
( |
const QStringList & |
pLines | ) |
|
|
explicit |
◆ data()
QVariant FormattedTextModel::data |
( |
const QModelIndex & |
pIndex, |
|
|
int |
pRole = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ isFormattingLine()
◆ lineType()
◆ load()
bool FormattedTextModel::load |
( |
const QString & |
pFilepath | ) |
|
◆ loadSeveral()
bool FormattedTextModel::loadSeveral |
( |
const QStringList & |
pFilepaths | ) |
|
◆ readLines()
◆ replaceControlCharactersWithHtml()
QString FormattedTextModel::replaceControlCharactersWithHtml |
( |
const QString & |
pLine | ) |
|
|
static |
◆ roleNames()
QHash< int, QByteArray > FormattedTextModel::roleNames |
( |
| ) |
const |
|
override |
◆ rowCount()
int FormattedTextModel::rowCount |
( |
const QModelIndex & |
pIndex = QModelIndex() | ) |
const |
|
override |
◆ stripFormattingCharacters()
QString FormattedTextModel::stripFormattingCharacters |
( |
const QString & |
pLine, |
|
|
LineType |
pType |
|
) |
| |
|
static |
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: