Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QTextEditPrivate Class Reference

#include <qtextedit_p.h>

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

Public Member Functions

 QTextEditPrivate ()
 
 ~QTextEditPrivate ()
 
void init (const QString &html=QString())
 
void paint (QPainter *p, QPaintEvent *e)
 
void repaintContents (const QRectF &contentsRect)
 
QPoint mapToContents (const QPoint &point) const
 
void adjustScrollbars ()
 
void 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 cursorPositionChanged ()
 
void 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
 
QString anchorToScrollToWhenVisible
 
QString placeholderText
 
Qt::CursorShape cursorToRestoreAfterHover = Qt::IBeamCursor
 
std::array< QMetaObject::Connection, 13 > connections
 

Detailed Description

Definition at line 43 of file qtextedit_p.h.

Constructor & Destructor Documentation

◆ QTextEditPrivate()

QTextEditPrivate::QTextEditPrivate ( )

◆ ~QTextEditPrivate()

QTextEditPrivate::~QTextEditPrivate ( )

Definition at line 99 of file qtextedit.cpp.

References connection, connections, and QObject::disconnect().

+ Here is the call graph for this function:

Member Function Documentation

◆ adjustScrollbars()

void QTextEditPrivate::adjustScrollbars ( )

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

+ Here is the caller graph for this function:

◆ createAutoBulletList()

void QTextEditPrivate::createAutoBulletList ( )

Definition at line 105 of file qtextedit.cpp.

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

+ Here is the call graph for this function:

◆ cursorPositionChanged()

void QTextEditPrivate::cursorPositionChanged ( )

Definition at line 206 of file qtextedit.cpp.

References emit.

Referenced by init().

+ Here is the caller graph for this function:

◆ ensureVisible()

void QTextEditPrivate::ensureVisible ( const QRectF & rect)

Definition at line 330 of file qtextedit.cpp.

References adjustScrollbars(), horizontalOffset(), rect, verticalOffset(), and viewport().

Referenced by init().

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

◆ horizontalOffset()

int QTextEditPrivate::horizontalOffset ( ) const
inline

Definition at line 64 of file qtextedit_p.h.

Referenced by ensureVisible(), mapToContents(), paint(), repaintContents(), and sendControlEvent().

+ Here is the caller graph for this function:

◆ hoveredBlockWithMarkerChanged()

void QTextEditPrivate::hoveredBlockWithMarkerChanged ( const QTextBlock & block)

Definition at line 216 of file qtextedit.cpp.

References QTextBlock::blockFormat(), cursor, cursorToRestoreAfterHover, QTextBlock::isValid(), QTextBlockFormat::marker(), QTextBlockFormat::NoMarker, Qt::PointingHandCursor, and viewport().

Referenced by init().

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

◆ init()

void QTextEditPrivate::init ( const QString & html = QString())

◆ mapToContents()

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

Definition at line 54 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 233 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()

void QTextEditPrivate::relayoutDocument ( )

Definition at line 1516 of file qtextedit.cpp.

References adjustScrollbars(), control, QWidgetTextControl::document(), QTextDocument::documentLayout(), QTextEdit::FixedColumnWidth, QTextEdit::FixedPixelWidth, ignoreAutomaticScrollbarAdjustment, layout, lineWrap, lineWrapColumnOrWidth, QTextEdit::NoWrap, QObject::property(), QTextDocument::setPageSize(), verticalOffset(), and viewport().

+ Here is the call graph for this function:

◆ repaintContents()

void QTextEditPrivate::repaintContents ( const QRectF & contentsRect)

Definition at line 188 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:

◆ resolveUrl()

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

Reimplemented in QTextBrowserPrivate.

Definition at line 78 of file qtextedit_p.h.

References url.

◆ sendControlEvent()

void QTextEditPrivate::sendControlEvent ( QEvent * e)
inline

Definition at line 69 of file qtextedit_p.h.

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

+ Here is the call graph for this function:

◆ updateDefaultTextOption()

void QTextEditPrivate::updateDefaultTextOption ( )

Definition at line 1637 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 66 of file qtextedit_p.h.

Referenced by ensureVisible(), mapToContents(), paint(), relayoutDocument(), repaintContents(), and sendControlEvent().

+ Here is the caller graph for this function:

Member Data Documentation

◆ anchorToScrollToWhenVisible

QString QTextEditPrivate::anchorToScrollToWhenVisible

Definition at line 99 of file qtextedit_p.h.

◆ autoFormatting

QTextEdit::AutoFormatting QTextEditPrivate::autoFormatting

Definition at line 83 of file qtextedit_p.h.

◆ autoScrollDragPos

QPoint QTextEditPrivate::autoScrollDragPos

Definition at line 87 of file qtextedit_p.h.

◆ autoScrollTimer

QBasicTimer QTextEditPrivate::autoScrollTimer

Definition at line 86 of file qtextedit_p.h.

◆ clickCausedFocus

uint QTextEditPrivate::clickCausedFocus

Definition at line 97 of file qtextedit_p.h.

◆ connections

std::array<QMetaObject::Connection, 13> QTextEditPrivate::connections

Definition at line 105 of file qtextedit_p.h.

Referenced by ~QTextEditPrivate(), and init().

◆ control

◆ cursorToRestoreAfterHover

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

Definition at line 103 of file qtextedit_p.h.

Referenced by hoveredBlockWithMarkerChanged().

◆ ignoreAutomaticScrollbarAdjustment

uint QTextEditPrivate::ignoreAutomaticScrollbarAdjustment

Definition at line 93 of file qtextedit_p.h.

Referenced by QTextEditPrivate(), and relayoutDocument().

◆ inDrag

uint QTextEditPrivate::inDrag

Definition at line 96 of file qtextedit_p.h.

Referenced by QTextEditPrivate().

◆ lineWrap

QTextEdit::LineWrapMode QTextEditPrivate::lineWrap

Definition at line 89 of file qtextedit_p.h.

Referenced by relayoutDocument(), and updateDefaultTextOption().

◆ lineWrapColumnOrWidth

int QTextEditPrivate::lineWrapColumnOrWidth

Definition at line 90 of file qtextedit_p.h.

Referenced by relayoutDocument().

◆ placeholderText

QString QTextEditPrivate::placeholderText

Definition at line 101 of file qtextedit_p.h.

Referenced by paint().

◆ preferRichText

uint QTextEditPrivate::preferRichText

Definition at line 94 of file qtextedit_p.h.

Referenced by QTextEditPrivate().

◆ showCursorOnInitialShow

uint QTextEditPrivate::showCursorOnInitialShow

Definition at line 95 of file qtextedit_p.h.

Referenced by QTextEditPrivate().

◆ tabChangesFocus

bool QTextEditPrivate::tabChangesFocus

Definition at line 84 of file qtextedit_p.h.

◆ wordWrap

QTextOption::WrapMode QTextEditPrivate::wordWrap

Definition at line 91 of file qtextedit_p.h.

Referenced by updateDefaultTextOption().


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