AusweisApp
|
#include <FormattedTextModel.h>
Klassen | |
struct | ReadLinesResult |
Öffentliche Typen | |
enum | LineType { EMPTY , HEADER , SECTION , SUBSECTION , REGULARTEXT , LISTITEM } |
enum | FormattedTextRoles { ContentRole = Qt::UserRole + 1 , LineTypeRole } |
Öffentliche Methoden | |
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) |
Öffentliche, statische Methoden | |
static bool | isFormattingLine (LineType pType) |
static LineType | lineType (const QString &pLine) |
static QString | stripFormattingCharacters (const QString &pLine, LineType pType) |
static QString | replaceControlCharactersWithHtml (const QString &pLine) |
static ReadLinesResult | readLines (const QString &pFilepath) |
|
explicit |
|
override |
|
static |
|
static |
bool FormattedTextModel::loadSeveral | ( | const QStringList & | pFilepaths | ) |
|
static |
|
override |
|
override |
|
static |