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
QTextBrowserPrivate Class Reference
Inheritance diagram for QTextBrowserPrivate:
Collaboration diagram for QTextBrowserPrivate:

Classes

struct  HistoryEntry

Public Member Functions

 QTextBrowserPrivate ()
 ~QTextBrowserPrivate ()
void init ()
HistoryEntry history (int i) const
HistoryEntry createHistoryEntry () const
void restoreHistoryEntry (const HistoryEntry &entry)
QString findFile (const QUrl &name) const
void documentModified ()
void activateAnchor (const QString &href)
void highlightLink (const QString &href)
void setSource (const QUrl &url, QTextDocument::ResourceType type)
virtual QUrl resolveUrl (const QUrl &url) const override
QUrl resolveUrl (const QString &url) const
void emitHighlighted (const QUrl &url)
 QTextBrowserPrivate ()
 ~QTextBrowserPrivate ()
void init ()
HistoryEntry history (int i) const
HistoryEntry createHistoryEntry () const
void restoreHistoryEntry (const HistoryEntry &entry)
QString findFile (const QUrl &name) const
void documentModified ()
void activateAnchor (const QString &href)
void highlightLink (const QString &href)
void setSource (const QUrl &url, QTextDocument::ResourceType type)
virtual QUrl resolveUrl (const QUrl &url) const override
QUrl resolveUrl (const QString &url) const
void emitHighlighted (const QUrl &url)
Public Member Functions inherited from QTextEditPrivate
 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 ()

Public Attributes

QStack< HistoryEntrystack
QStack< HistoryEntryforwardStack
QUrl home
QUrl currentURL
QStringList searchPaths
bool textOrSourceChanged
bool forceLoadOnSourceChange
bool openExternalLinks
bool openLinks
QTextDocument::ResourceType currentType
QCursor oldCursor
std::array< QMetaObject::Connection, 3 > connections
Public Attributes inherited from QTextEditPrivate
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 39 of file qtextbrowser.cpp.

Constructor & Destructor Documentation

◆ QTextBrowserPrivate() [1/2]

QTextBrowserPrivate::QTextBrowserPrivate ( )
inline

Definition at line 43 of file qtextbrowser.cpp.

◆ ~QTextBrowserPrivate() [1/2]

QTextBrowserPrivate::~QTextBrowserPrivate ( )
inline

Definition at line 50 of file qtextbrowser.cpp.

◆ QTextBrowserPrivate() [2/2]

QTextBrowserPrivate::QTextBrowserPrivate ( )
inline

Definition at line 43 of file qtextbrowser.cpp.

◆ ~QTextBrowserPrivate() [2/2]

QTextBrowserPrivate::~QTextBrowserPrivate ( )
inline

Definition at line 50 of file qtextbrowser.cpp.

Member Function Documentation

◆ activateAnchor() [1/2]

void QTextBrowserPrivate::activateAnchor ( const QString & href)

Definition at line 200 of file qtextbrowser.cpp.

References openLinks, and textOrSourceChanged.

◆ activateAnchor() [2/2]

void QTextBrowserPrivate::activateAnchor ( const QString & href)

◆ createHistoryEntry() [1/2]

◆ createHistoryEntry() [2/2]

HistoryEntry QTextBrowserPrivate::createHistoryEntry ( ) const

◆ documentModified() [1/2]

void QTextBrowserPrivate::documentModified ( )
inline

Definition at line 112 of file qtextbrowser.cpp.

References textOrSourceChanged.

◆ documentModified() [2/2]

void QTextBrowserPrivate::documentModified ( )
inline

Definition at line 112 of file qtextbrowser.cpp.

◆ emitHighlighted() [1/2]

void QTextBrowserPrivate::emitHighlighted ( const QUrl & url)
inline

Definition at line 133 of file qtextbrowser.cpp.

Referenced by highlightLink().

Here is the caller graph for this function:

◆ emitHighlighted() [2/2]

void QTextBrowserPrivate::emitHighlighted ( const QUrl & url)
inline

Definition at line 133 of file qtextbrowser.cpp.

◆ findFile() [1/2]

QString QTextBrowserPrivate::findFile ( const QUrl & name) const

Definition at line 142 of file qtextbrowser.cpp.

◆ findFile() [2/2]

QString QTextBrowserPrivate::findFile ( const QUrl & name) const

◆ highlightLink() [1/2]

void QTextBrowserPrivate::highlightLink ( const QString & href)

Definition at line 241 of file qtextbrowser.cpp.

References emitHighlighted().

Here is the call graph for this function:

◆ highlightLink() [2/2]

void QTextBrowserPrivate::highlightLink ( const QString & href)

◆ history() [1/2]

HistoryEntry QTextBrowserPrivate::history ( int i) const
inline

Definition at line 70 of file qtextbrowser.cpp.

References QTextBrowserPrivate::HistoryEntry::HistoryEntry().

Here is the call graph for this function:

◆ history() [2/2]

HistoryEntry QTextBrowserPrivate::history ( int i) const
inline

Definition at line 70 of file qtextbrowser.cpp.

◆ init() [1/2]

void QTextBrowserPrivate::init ( )

Definition at line 670 of file qtextbrowser.cpp.

References QPainter::viewport().

Here is the call graph for this function:

◆ init() [2/2]

void QTextBrowserPrivate::init ( )

◆ resolveUrl() [1/4]

QUrl QTextBrowserPrivate::resolveUrl ( const QString & url) const
inline

Definition at line 125 of file qtextbrowser.cpp.

References resolveUrl().

Here is the call graph for this function:

◆ resolveUrl() [2/4]

QUrl QTextBrowserPrivate::resolveUrl ( const QString & url) const
inline

Definition at line 125 of file qtextbrowser.cpp.

◆ resolveUrl() [3/4]

QUrl QTextBrowserPrivate::resolveUrl ( const QUrl & url) const
overridevirtual

Reimplemented from QTextEditPrivate.

Definition at line 175 of file qtextbrowser.cpp.

Referenced by resolveUrl().

Here is the caller graph for this function:

◆ resolveUrl() [4/4]

virtual QUrl QTextBrowserPrivate::resolveUrl ( const QUrl & url) const
overridevirtual

Reimplemented from QTextEditPrivate.

◆ restoreHistoryEntry() [1/2]

void QTextBrowserPrivate::restoreHistoryEntry ( const HistoryEntry & entry)

◆ restoreHistoryEntry() [2/2]

void QTextBrowserPrivate::restoreHistoryEntry ( const HistoryEntry & entry)

◆ setSource() [1/2]

void QTextBrowserPrivate::setSource ( const QUrl & url,
QTextDocument::ResourceType type )

Definition at line 260 of file qtextbrowser.cpp.

References forceLoadOnSourceChange, and textOrSourceChanged.

◆ setSource() [2/2]

void QTextBrowserPrivate::setSource ( const QUrl & url,
QTextDocument::ResourceType type )

Member Data Documentation

◆ connections

std::array< QMetaObject::Connection, 3 > QTextBrowserPrivate::connections

Definition at line 138 of file qtextbrowser.cpp.

◆ currentType

QTextDocument::ResourceType QTextBrowserPrivate::currentType

Definition at line 104 of file qtextbrowser.cpp.

◆ currentURL

QUrl QTextBrowserPrivate::currentURL

Definition at line 91 of file qtextbrowser.cpp.

◆ forceLoadOnSourceChange

bool QTextBrowserPrivate::forceLoadOnSourceChange

Definition at line 99 of file qtextbrowser.cpp.

Referenced by setSource().

◆ forwardStack

QStack< HistoryEntry > QTextBrowserPrivate::forwardStack

Definition at line 89 of file qtextbrowser.cpp.

◆ home

QUrl QTextBrowserPrivate::home

Definition at line 90 of file qtextbrowser.cpp.

◆ oldCursor

QCursor QTextBrowserPrivate::oldCursor

Definition at line 107 of file qtextbrowser.cpp.

◆ openExternalLinks

bool QTextBrowserPrivate::openExternalLinks

Definition at line 101 of file qtextbrowser.cpp.

◆ openLinks

bool QTextBrowserPrivate::openLinks

Definition at line 102 of file qtextbrowser.cpp.

Referenced by activateAnchor().

◆ searchPaths

QStringList QTextBrowserPrivate::searchPaths

Definition at line 93 of file qtextbrowser.cpp.

◆ stack

QStack< HistoryEntry > QTextBrowserPrivate::stack

Definition at line 88 of file qtextbrowser.cpp.

◆ textOrSourceChanged

bool QTextBrowserPrivate::textOrSourceChanged

Definition at line 98 of file qtextbrowser.cpp.

Referenced by activateAnchor(), documentModified(), and setSource().


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