Qt 4.8
Public Functions | Public Variables | List of all members
QPlainTextDocumentLayoutPrivate Class Reference
Inheritance diagram for QPlainTextDocumentLayoutPrivate:
QAbstractTextDocumentLayoutPrivate QObjectPrivate QObjectData

Public Functions

qreal blockWidth (const QTextBlock &block)
 
void layoutBlock (const QTextBlock &block)
 
 QPlainTextDocumentLayoutPrivate ()
 
void relayout ()
 
- Public Functions inherited from QAbstractTextDocumentLayoutPrivate
QSizeF _q_dynamicDocumentSizeSlot () const
 
int _q_dynamicPageCountSlot () const
 
void _q_handlerDestroyed (QObject *obj)
 
 QAbstractTextDocumentLayoutPrivate ()
 
void setDocument (QTextDocument *doc)
 
- Public Functions inherited from QObjectPrivate
void _q_reregisterTimers (void *pointer)
 
void addConnection (int signal, Connection *c)
 
void cleanConnectionLists ()
 
void connectNotify (const char *signal)
 
void deleteChildren ()
 
void disconnectNotify (const char *signal)
 
bool isSender (const QObject *receiver, const char *signal) const
 
bool isSignalConnected (uint signalIdx) const
 Returns true if the signal with index signal_index from object sender is connected. More...
 
void moveToThread_helper ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void setParent_helper (QObject *)
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
int signalIndex (const char *signalName) const
 Returns the signal index used in the internal connectionLists vector. More...
 
virtual ~QObjectPrivate ()
 
- Public Functions inherited from QObjectData
virtual ~QObjectData ()=0
 

Public Variables

int blockCount
 
bool blockDocumentSizeChanged
 
bool blockUpdate
 
int cursorWidth
 
QPlainTextEditPrivatemainViewPrivate
 
qreal maximumWidth
 
int maximumWidthBlockNumber
 
int textLayoutFlags
 
qreal width
 
- Public Variables inherited from QAbstractTextDocumentLayoutPrivate
QTextDocumentPrivatedocPrivate
 
QTextDocumentdocument
 
HandlerHash handlers
 
QPaintDevicepaintDevice
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 

Detailed Description

Definition at line 80 of file qplaintextedit.cpp.

Constructors and Destructors

◆ QPlainTextDocumentLayoutPrivate()

QPlainTextDocumentLayoutPrivate::QPlainTextDocumentLayoutPrivate ( )
inline

Functions

◆ blockWidth()

qreal QPlainTextDocumentLayoutPrivate::blockWidth ( const QTextBlock block)

◆ layoutBlock()

void QPlainTextDocumentLayoutPrivate::layoutBlock ( const QTextBlock block)

◆ relayout()

void QPlainTextDocumentLayoutPrivate::relayout ( )

Definition at line 280 of file qplaintextedit.cpp.

281 {
283  QTextBlock block = q->document()->firstBlock();
284  while (block.isValid()) {
285  block.layout()->clearLayout();
286  block.setLineCount(block.isVisible() ? 1 : 0);
287  block = block.next();
288  }
289  emit q->update();
290 }
void setLineCount(int count)
The QPlainTextDocumentLayout class implements a plain text layout for QTextDocument.
QTextBlock next() const
Returns the text block in the document after this block, or an empty text block if this is the last o...
#define Q_Q(Class)
Definition: qglobal.h:2483
bool isVisible() const
Returns true if the block is visible; otherwise returns false.
#define emit
Definition: qobjectdefs.h:76
The QTextBlock class provides a container for text fragments in a QTextDocument.
Definition: qtextobject.h:199
void clearLayout()
Clears the line information in the layout.
bool isValid() const
Returns true if this text block is valid; otherwise returns false.
Definition: qtextobject.h:208
const QTextDocument * document() const
Returns the text document this text block belongs to, or 0 if the text block does not belong to any d...
QTextLayout * layout() const
Returns the QTextLayout that is used to lay out and display the block&#39;s contents. ...
QTextBlock firstBlock() const
Returns the document&#39;s first text block.

Properties

◆ blockCount

int QPlainTextDocumentLayoutPrivate::blockCount

Definition at line 98 of file qplaintextedit.cpp.

Referenced by QPlainTextDocumentLayoutPrivate().

◆ blockDocumentSizeChanged

bool QPlainTextDocumentLayoutPrivate::blockDocumentSizeChanged

◆ blockUpdate

bool QPlainTextDocumentLayoutPrivate::blockUpdate

◆ cursorWidth

int QPlainTextDocumentLayoutPrivate::cursorWidth

Definition at line 102 of file qplaintextedit.cpp.

Referenced by QPlainTextDocumentLayoutPrivate().

◆ mainViewPrivate

QPlainTextEditPrivate* QPlainTextDocumentLayoutPrivate::mainViewPrivate

◆ maximumWidth

qreal QPlainTextDocumentLayoutPrivate::maximumWidth

Definition at line 96 of file qplaintextedit.cpp.

Referenced by QPlainTextDocumentLayoutPrivate().

◆ maximumWidthBlockNumber

int QPlainTextDocumentLayoutPrivate::maximumWidthBlockNumber

Definition at line 97 of file qplaintextedit.cpp.

Referenced by QPlainTextDocumentLayoutPrivate().

◆ textLayoutFlags

int QPlainTextDocumentLayoutPrivate::textLayoutFlags

Definition at line 103 of file qplaintextedit.cpp.

Referenced by QPlainTextDocumentLayoutPrivate().

◆ width

qreal QPlainTextDocumentLayoutPrivate::width

Definition at line 95 of file qplaintextedit.cpp.

Referenced by QPlainTextDocumentLayoutPrivate().


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