Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QTextEditPrivate Class Reference

#include <qtextedit_p.h>

+ Inheritance diagram for QTextEditPrivate:
+ Collaboration diagram for QTextEditPrivate:

Public Member Functions

 QTextEditPrivate ()
 
void init (const QString &html=QString())
 
void paint (QPainter *p, QPaintEvent *e)
 
void _q_repaintContents (const QRectF &contentsRect)
 
QPoint mapToContents (const QPoint &point) const
 
void _q_adjustScrollbars ()
 
void _q_ensureVisible (const QRectF &rect)
 
void relayoutDocument ()
 
void createAutoBulletList ()
 
void pageUpDown (QTextCursor::MoveOperation op, QTextCursor::MoveMode moveMode)
 
int horizontalOffset () const
 
int verticalOffset () const
 
void sendControlEvent (QEvent *e)
 
void _q_currentCharFormatChanged (const QTextCharFormat &format)
 
void _q_cursorPositionChanged ()
 
void _q_hoveredBlockWithMarkerChanged (const QTextBlock &block)
 
void updateDefaultTextOption ()
 
virtual QUrl resolveUrl (const QUrl &url) const
 

Public Attributes

QWidgetTextControlcontrol
 
QTextEdit::AutoFormatting autoFormatting
 
bool tabChangesFocus
 
QBasicTimer autoScrollTimer
 
QPoint autoScrollDragPos
 
QTextEdit::LineWrapMode lineWrap
 
int lineWrapColumnOrWidth
 
QTextOption::WrapMode wordWrap
 
uint ignoreAutomaticScrollbarAdjustment: 1
 
uint preferRichText: 1
 
uint showCursorOnInitialShow: 1
 
uint inDrag: 1
 
uint clickCausedFocus: 1
 
Qt::TextFormat textFormat
 
QString anchorToScrollToWhenVisible
 
QString placeholderText
 
Qt::CursorShape cursorToRestoreAfterHover = Qt::IBeamCursor
 

Detailed Description

Definition at line 41 of file qtextedit_p.h.

Constructor & Destructor Documentation

◆ QTextEditPrivate()

QTextEditPrivate::QTextEditPrivate ( )

Member Function Documentation

◆ _q_adjustScrollbars()

void QTextEditPrivate::_q_adjustScrollbars ( )

Referenced by _q_ensureVisible(), init(), and relayoutDocument().

+ Here is the caller graph for this function:

◆ _q_currentCharFormatChanged()

void QTextEditPrivate::_q_currentCharFormatChanged ( const QTextCharFormat format)

Definition at line 1614 of file qtextedit.cpp.

References emit, and fmt.

Referenced by init().

+ Here is the caller graph for this function:

◆ _q_cursorPositionChanged()

void QTextEditPrivate::_q_cursorPositionChanged ( )

Definition at line 191 of file qtextedit.cpp.

References emit.

Referenced by init().

+ Here is the caller graph for this function:

◆ _q_ensureVisible()

void QTextEditPrivate::_q_ensureVisible ( const QRectF rect)

Definition at line 315 of file qtextedit.cpp.

References _q_adjustScrollbars(), horizontalOffset(), rect, QRectF::toRect(), verticalOffset(), and viewport().

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_hoveredBlockWithMarkerChanged()

void QTextEditPrivate::_q_hoveredBlockWithMarkerChanged ( const QTextBlock block)

Referenced by init().

+ Here is the caller graph for this function:

◆ _q_repaintContents()

void QTextEditPrivate::_q_repaintContents ( const QRectF contentsRect)

Definition at line 173 of file qtextedit.cpp.

References horizontalOffset(), QRectF::intersected(), QRectF::isValid(), QRectF::toAlignedRect(), QRect::translate(), verticalOffset(), and viewport().

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createAutoBulletList()

void QTextEditPrivate::createAutoBulletList ( )

Definition at line 100 of file qtextedit.cpp.

References control, cursor, QTextBlockFormat::indent(), QTextListFormat::ListDisc, QTextBlockFormat::setIndent(), QTextListFormat::setIndent(), QTextListFormat::setStyle(), QWidgetTextControl::setTextCursor(), and QWidgetTextControl::textCursor().

+ Here is the call graph for this function:

◆ horizontalOffset()

int QTextEditPrivate::horizontalOffset ( ) const
inline

Definition at line 61 of file qtextedit_p.h.

Referenced by _q_ensureVisible(), _q_repaintContents(), mapToContents(), paint(), and sendControlEvent().

+ Here is the caller graph for this function:

◆ init()

◆ mapToContents()

QPoint QTextEditPrivate::mapToContents ( const QPoint point) const
inline

Definition at line 51 of file qtextedit_p.h.

References horizontalOffset(), verticalOffset(), QPoint::x(), and QPoint::y().

+ Here is the call graph for this function:

◆ pageUpDown()

void QTextEditPrivate::pageUpDown ( QTextCursor::MoveOperation  op,
QTextCursor::MoveMode  moveMode 
)

Definition at line 218 of file qtextedit.cpp.

References control, cursor, QWidgetTextControl::cursorRect(), QTextCursor::Down, QTextCursor::KeepAnchor, qAbs(), QWidgetTextControl::setTextCursor(), QAbstractSlider::SliderPageStepAdd, QAbstractSlider::SliderPageStepSub, QWidgetTextControl::textCursor(), QRectF::top(), and QTextCursor::Up.

+ Here is the call graph for this function:

◆ paint()

◆ relayoutDocument()

◆ resolveUrl()

virtual QUrl QTextEditPrivate::resolveUrl ( const QUrl url) const
inlinevirtual

Reimplemented in QTextBrowserPrivate.

Definition at line 76 of file qtextedit_p.h.

References url.

◆ sendControlEvent()

void QTextEditPrivate::sendControlEvent ( QEvent e)
inline

Definition at line 66 of file qtextedit_p.h.

References control, e, horizontalOffset(), QWidgetTextControl::processEvent(), verticalOffset(), and viewport().

+ Here is the call graph for this function:

◆ updateDefaultTextOption()

void QTextEditPrivate::updateDefaultTextOption ( )

Definition at line 1620 of file qtextedit.cpp.

References control, QTextDocument::defaultTextOption(), QWidgetTextControl::document(), lineWrap, QTextOption::NoWrap, QTextEdit::NoWrap, opt, QTextDocument::setDefaultTextOption(), and wordWrap.

+ Here is the call graph for this function:

◆ verticalOffset()

int QTextEditPrivate::verticalOffset ( ) const
inline

Definition at line 63 of file qtextedit_p.h.

Referenced by _q_ensureVisible(), _q_repaintContents(), mapToContents(), paint(), relayoutDocument(), and sendControlEvent().

+ Here is the caller graph for this function:

Member Data Documentation

◆ anchorToScrollToWhenVisible

QString QTextEditPrivate::anchorToScrollToWhenVisible

Definition at line 100 of file qtextedit_p.h.

◆ autoFormatting

QTextEdit::AutoFormatting QTextEditPrivate::autoFormatting

Definition at line 81 of file qtextedit_p.h.

◆ autoScrollDragPos

QPoint QTextEditPrivate::autoScrollDragPos

Definition at line 85 of file qtextedit_p.h.

◆ autoScrollTimer

QBasicTimer QTextEditPrivate::autoScrollTimer

Definition at line 84 of file qtextedit_p.h.

◆ clickCausedFocus

uint QTextEditPrivate::clickCausedFocus

Definition at line 95 of file qtextedit_p.h.

◆ control

◆ cursorToRestoreAfterHover

Qt::CursorShape QTextEditPrivate::cursorToRestoreAfterHover = Qt::IBeamCursor

Definition at line 104 of file qtextedit_p.h.

◆ ignoreAutomaticScrollbarAdjustment

uint QTextEditPrivate::ignoreAutomaticScrollbarAdjustment

Definition at line 91 of file qtextedit_p.h.

Referenced by QTextEditPrivate(), and relayoutDocument().

◆ inDrag

uint QTextEditPrivate::inDrag

Definition at line 94 of file qtextedit_p.h.

Referenced by QTextEditPrivate().

◆ lineWrap

QTextEdit::LineWrapMode QTextEditPrivate::lineWrap

Definition at line 87 of file qtextedit_p.h.

Referenced by relayoutDocument(), and updateDefaultTextOption().

◆ lineWrapColumnOrWidth

int QTextEditPrivate::lineWrapColumnOrWidth

Definition at line 88 of file qtextedit_p.h.

Referenced by relayoutDocument().

◆ placeholderText

QString QTextEditPrivate::placeholderText

Definition at line 102 of file qtextedit_p.h.

Referenced by paint().

◆ preferRichText

uint QTextEditPrivate::preferRichText

Definition at line 92 of file qtextedit_p.h.

Referenced by QTextEditPrivate().

◆ showCursorOnInitialShow

uint QTextEditPrivate::showCursorOnInitialShow

Definition at line 93 of file qtextedit_p.h.

Referenced by QTextEditPrivate().

◆ tabChangesFocus

bool QTextEditPrivate::tabChangesFocus

Definition at line 82 of file qtextedit_p.h.

◆ textFormat

Qt::TextFormat QTextEditPrivate::textFormat

Definition at line 98 of file qtextedit_p.h.

◆ wordWrap

QTextOption::WrapMode QTextEditPrivate::wordWrap

Definition at line 89 of file qtextedit_p.h.

Referenced by updateDefaultTextOption().


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