Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QTextCursorPrivate Class Reference

#include <qtextcursor_p.h>

+ Inheritance diagram for QTextCursorPrivate:
+ Collaboration diagram for QTextCursorPrivate:

Public Types

enum  AdjustResult { CursorMoved , CursorUnchanged }
 

Public Member Functions

 QTextCursorPrivate (QTextDocumentPrivate *p)
 
 QTextCursorPrivate (const QTextCursorPrivate &rhs)
 
 ~QTextCursorPrivate ()
 
AdjustResult adjustPosition (int positionOfChange, int charsAddedOrRemoved, QTextUndoCommand::Operation op)
 
void adjustCursor (QTextCursor::MoveOperation m)
 
void remove ()
 
void clearCells (QTextTable *table, int startRow, int startCol, int numRows, int numCols, QTextUndoCommand::Operation op)
 
bool setPosition (int newPosition)
 
void setX ()
 
bool canDelete (int pos) const
 
void insertBlock (const QTextBlockFormat &format, const QTextCharFormat &charFormat)
 
bool movePosition (QTextCursor::MoveOperation op, QTextCursor::MoveMode mode=QTextCursor::MoveAnchor)
 
QTextBlock block () const
 
QTextBlockFormat blockFormat () const
 
QTextLayoutblockLayout (QTextBlock &block) const
 
QTextTablecomplexSelectionTable () const
 
void selectedTableCells (int *firstRow, int *numRows, int *firstColumn, int *numColumns) const
 
void setBlockCharFormat (const QTextCharFormat &format, QTextDocumentPrivate::FormatChangeMode changeMode)
 
void setBlockFormat (const QTextBlockFormat &format, QTextDocumentPrivate::FormatChangeMode changeMode)
 
void setCharFormat (const QTextCharFormat &format, QTextDocumentPrivate::FormatChangeMode changeMode)
 
void aboutToRemoveCell (int from, int to)
 
- Public Member Functions inherited from QSharedData
 QSharedData () noexcept
 Constructs a QSharedData object with a reference count of 0.
 
 QSharedData (const QSharedData &) noexcept
 Constructs a QSharedData object with reference count 0.
 
QSharedDataoperator= (const QSharedData &)=delete
 
 ~QSharedData ()=default
 

Static Public Member Functions

static QTextCursorPrivategetPrivate (QTextCursor *c)
 
static QTextCursor fromPosition (QTextDocumentPrivate *d, int pos)
 

Public Attributes

QTextDocumentPrivatepriv
 
qreal x
 
int position
 
int anchor
 
int adjusted_anchor
 
int currentCharFormat
 
uint visualNavigation: 1
 
uint keepPositionOnInsert: 1
 
uint changed: 1
 
- Public Attributes inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Definition at line 27 of file qtextcursor_p.h.

Member Enumeration Documentation

◆ AdjustResult

Enumerator
CursorMoved 
CursorUnchanged 

Definition at line 36 of file qtextcursor_p.h.

Constructor & Destructor Documentation

◆ QTextCursorPrivate() [1/2]

QTextCursorPrivate::QTextCursorPrivate ( QTextDocumentPrivate * p)

Definition at line 27 of file qtextcursor.cpp.

◆ QTextCursorPrivate() [2/2]

QTextCursorPrivate::QTextCursorPrivate ( const QTextCursorPrivate & rhs)

Definition at line 35 of file qtextcursor.cpp.

◆ ~QTextCursorPrivate()

QTextCursorPrivate::~QTextCursorPrivate ( )

Definition at line 51 of file qtextcursor.cpp.

Member Function Documentation

◆ aboutToRemoveCell()

void QTextCursorPrivate::aboutToRemoveCell ( int from,
int to )

Definition at line 243 of file qtextcursor.cpp.

◆ adjustCursor()

void QTextCursorPrivate::adjustCursor ( QTextCursor::MoveOperation m)

Definition at line 177 of file qtextcursor.cpp.

◆ adjustPosition()

QTextCursorPrivate::AdjustResult QTextCursorPrivate::adjustPosition ( int positionOfChange,
int charsAddedOrRemoved,
QTextUndoCommand::Operation op )

Definition at line 57 of file qtextcursor.cpp.

◆ block()

QTextBlock QTextCursorPrivate::block ( ) const
inline

Definition at line 58 of file qtextcursor_p.h.

◆ blockFormat()

QTextBlockFormat QTextCursorPrivate::blockFormat ( ) const
inline

Definition at line 60 of file qtextcursor_p.h.

◆ blockLayout()

QTextLayout * QTextCursorPrivate::blockLayout ( QTextBlock & block) const

Definition at line 835 of file qtextcursor.cpp.

◆ canDelete()

bool QTextCursorPrivate::canDelete ( int pos) const

Definition at line 160 of file qtextcursor.cpp.

◆ clearCells()

void QTextCursorPrivate::clearCells ( QTextTable * table,
int startRow,
int startCol,
int numRows,
int numCols,
QTextUndoCommand::Operation op )

Definition at line 144 of file qtextcursor.cpp.

◆ complexSelectionTable()

QTextTable * QTextCursorPrivate::complexSelectionTable ( ) const

Definition at line 635 of file qtextcursor.cpp.

◆ fromPosition()

static QTextCursor QTextCursorPrivate::fromPosition ( QTextDocumentPrivate * d,
int pos )
inlinestatic

Definition at line 74 of file qtextcursor_p.h.

◆ getPrivate()

static QTextCursorPrivate * QTextCursorPrivate::getPrivate ( QTextCursor * c)
inlinestatic

Definition at line 34 of file qtextcursor_p.h.

◆ insertBlock()

void QTextCursorPrivate::insertBlock ( const QTextBlockFormat & format,
const QTextCharFormat & charFormat )

Definition at line 167 of file qtextcursor.cpp.

◆ movePosition()

bool QTextCursorPrivate::movePosition ( QTextCursor::MoveOperation op,
QTextCursor::MoveMode mode = QTextCursor::MoveAnchor )

Definition at line 304 of file qtextcursor.cpp.

◆ remove()

void QTextCursorPrivate::remove ( )

Definition at line 114 of file qtextcursor.cpp.

◆ selectedTableCells()

void QTextCursorPrivate::selectedTableCells ( int * firstRow,
int * numRows,
int * firstColumn,
int * numColumns ) const

Definition at line 653 of file qtextcursor.cpp.

◆ setBlockCharFormat()

void QTextCursorPrivate::setBlockCharFormat ( const QTextCharFormat & format,
QTextDocumentPrivate::FormatChangeMode changeMode )

Definition at line 694 of file qtextcursor.cpp.

◆ setBlockFormat()

void QTextCursorPrivate::setBlockFormat ( const QTextBlockFormat & format,
QTextDocumentPrivate::FormatChangeMode changeMode )

Definition at line 743 of file qtextcursor.cpp.

◆ setCharFormat()

void QTextCursorPrivate::setCharFormat ( const QTextCharFormat & format,
QTextDocumentPrivate::FormatChangeMode changeMode )

Definition at line 786 of file qtextcursor.cpp.

◆ setPosition()

bool QTextCursorPrivate::setPosition ( int newPosition)
inline

Definition at line 43 of file qtextcursor_p.h.

◆ setX()

void QTextCursorPrivate::setX ( )

Definition at line 96 of file qtextcursor.cpp.

Member Data Documentation

◆ adjusted_anchor

int QTextCursorPrivate::adjusted_anchor

Definition at line 81 of file qtextcursor_p.h.

◆ anchor

int QTextCursorPrivate::anchor

Definition at line 80 of file qtextcursor_p.h.

◆ changed

uint QTextCursorPrivate::changed

Definition at line 85 of file qtextcursor_p.h.

◆ currentCharFormat

int QTextCursorPrivate::currentCharFormat

Definition at line 82 of file qtextcursor_p.h.

◆ keepPositionOnInsert

uint QTextCursorPrivate::keepPositionOnInsert

Definition at line 84 of file qtextcursor_p.h.

◆ position

int QTextCursorPrivate::position

Definition at line 79 of file qtextcursor_p.h.

◆ priv

QTextDocumentPrivate* QTextCursorPrivate::priv

Definition at line 77 of file qtextcursor_p.h.

◆ visualNavigation

uint QTextCursorPrivate::visualNavigation

Definition at line 83 of file qtextcursor_p.h.

◆ x

qreal QTextCursorPrivate::x

Definition at line 78 of file qtextcursor_p.h.


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