Qt 4.8
Public Functions | Public Variables | List of all members
QTextBlockData Class Reference

#include <qtextdocument_p.h>

Inheritance diagram for QTextBlockData:
QFragment< 3 >

Public Functions

void free ()
 
void initialize ()
 
void invalidate () const
 

Public Variables

int format
 
uint hidden: 1
 
QTextLayoutlayout
 
int revision: 31
 
QTextBlockUserDatauserData
 
int userState
 
- Public Variables inherited from QFragment< 3 >
quint32 color
 
quint32 left
 
quint32 parent
 
quint32 right
 
quint32 size_array [N]
 
quint32 size_left_array [N]
 

Additional Inherited Members

- Public Types inherited from QFragment< 3 >
enum  
 

Detailed Description

Definition at line 102 of file qtextdocument_p.h.

Functions

◆ free()

void QTextBlockData::free ( )
inline

Definition at line 108 of file qtextdocument_p.h.

109  { delete layout; layout = 0; delete userData; userData = 0; }
QTextLayout * layout
QTextBlockUserData * userData

◆ initialize()

void QTextBlockData::initialize ( )
inline

Definition at line 105 of file qtextdocument_p.h.

106  { layout = 0; userData = 0; userState = -1; revision = 0; hidden = 0; }
QTextLayout * layout
QTextBlockUserData * userData

◆ invalidate()

void QTextBlockData::invalidate ( ) const

Definition at line 123 of file qtextdocument_p.cpp.

Referenced by QTextDocumentPrivate::setBlockFormat(), and QTextDocumentPrivate::setCharFormat().

124 {
125  if (layout)
126  layout->engine()->invalidate();
127 }
QTextEngine * engine() const
Definition: qtextlayout.h:180
QTextLayout * layout
void invalidate()

Properties

◆ format

int QTextBlockData::format
mutable

◆ hidden

uint QTextBlockData::hidden
mutable

Definition at line 117 of file qtextdocument_p.h.

Referenced by QTextBlock::isVisible(), and QTextBlock::setVisible().

◆ layout

QTextLayout* QTextBlockData::layout
mutable

◆ revision

int QTextBlockData::revision
mutable

◆ userData

QTextBlockUserData* QTextBlockData::userData
mutable

Definition at line 114 of file qtextdocument_p.h.

Referenced by QTextBlock::setUserData(), and QTextBlock::userData().

◆ userState

int QTextBlockData::userState
mutable

The documentation for this class was generated from the following files: