AusweisApp
Lade ...
Suche ...
Keine Treffer
governikus::FormattedTextModel Klassenreferenz

#include <FormattedTextModel.h>

Klassendiagramm für governikus::FormattedTextModel:

Öffentliche Typen

enum class  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)
 

Freundbeziehungen

class ::test_FormattedTextModel
 

Dokumentation der Aufzählungstypen

◆ FormattedTextRoles

Aufzählungswerte
ContentRole 
LineTypeRole 

◆ LineType

Aufzählungswerte
EMPTY 
HEADER 
SECTION 
SUBSECTION 
REGULARTEXT 
LISTITEM 

Beschreibung der Konstruktoren und Destruktoren

◆ FormattedTextModel()

FormattedTextModel::FormattedTextModel ( QObject *  pParent,
const QStringList &  pLines = QStringList() 
)
explicit

Dokumentation der Elementfunktionen

◆ data()

QVariant FormattedTextModel::data ( const QModelIndex &  pIndex,
int  pRole = Qt::DisplayRole 
) const
override
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

◆ loadSeveral()

bool FormattedTextModel::loadSeveral ( const QStringList &  pFilepaths)

◆ roleNames()

QHash< int, QByteArray > FormattedTextModel::roleNames ( ) const
override

◆ rowCount()

int FormattedTextModel::rowCount ( const QModelIndex &  pIndex = QModelIndex()) const
override
Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

Freundbeziehungen und Funktionsdokumentation

◆ ::test_FormattedTextModel

friend class ::test_FormattedTextModel
friend

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: