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
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)
 
- 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 38 of file qtextbrowser.cpp.

Constructor & Destructor Documentation

◆ QTextBrowserPrivate()

QTextBrowserPrivate::QTextBrowserPrivate ( )
inline

Definition at line 42 of file qtextbrowser.cpp.

◆ ~QTextBrowserPrivate()

QTextBrowserPrivate::~QTextBrowserPrivate ( )
inline

Definition at line 49 of file qtextbrowser.cpp.

References connection, and QObject::disconnect().

+ Here is the call graph for this function:

Member Function Documentation

◆ activateAnchor()

void QTextBrowserPrivate::activateAnchor ( const QString & href)

Definition at line 199 of file qtextbrowser.cpp.

References currentURL, emit, QString::isEmpty(), QUrl::isRelative(), oldCursor, openExternalLinks, openLinks, QDesktopServices::openUrl(), resolveUrl(), QUrl::scheme(), textOrSourceChanged, url, and viewport().

Referenced by init().

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

◆ createHistoryEntry()

QTextBrowserPrivate::HistoryEntry QTextBrowserPrivate::createHistoryEntry ( ) const

Definition at line 559 of file qtextbrowser.cpp.

References QTextEditPrivate::control, cursor, QWidgetTextControl::cursorIsFocusIndicator(), QWidgetTextControl::textCursor(), and QTextBrowserPrivate::HistoryEntry::url.

+ Here is the call graph for this function:

◆ documentModified()

void QTextBrowserPrivate::documentModified ( )
inline

Definition at line 111 of file qtextbrowser.cpp.

References QString::isEmpty(), and QUrl::path().

Referenced by init().

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

◆ emitHighlighted()

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

Definition at line 132 of file qtextbrowser.cpp.

References emit, and url.

Referenced by highlightLink(), restoreHistoryEntry(), and setSource().

+ Here is the caller graph for this function:

◆ findFile()

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

Definition at line 141 of file qtextbrowser.cpp.

References QString::append(), fileName, QFileInfo::isReadable(), and searchPaths.

+ Here is the call graph for this function:

◆ highlightLink()

void QTextBrowserPrivate::highlightLink ( const QString & href)

Definition at line 240 of file qtextbrowser.cpp.

References emitHighlighted(), QString::isEmpty(), oldCursor, Qt::PointingHandCursor, resolveUrl(), url, and viewport().

Referenced by init().

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

◆ history()

HistoryEntry QTextBrowserPrivate::history ( int i) const
inline

Definition at line 69 of file qtextbrowser.cpp.

References i.

◆ init()

◆ resolveUrl() [1/2]

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

Definition at line 124 of file qtextbrowser.cpp.

References url.

◆ resolveUrl() [2/2]

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

Reimplemented from QTextEditPrivate.

Definition at line 174 of file qtextbrowser.cpp.

References currentURL, QUrl::fromLocalFile(), QUrl::hasFragment(), QFileInfo::isAbsolute(), QString::isEmpty(), QUrl::isRelative(), QUrl::path(), QUrl::resolved(), QUrl::scheme(), QDir::separator(), QUrl::toLocalFile(), and url.

Referenced by activateAnchor(), highlightLink(), restoreHistoryEntry(), and setSource().

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

◆ restoreHistoryEntry()

void QTextBrowserPrivate::restoreHistoryEntry ( const HistoryEntry & entry)

Definition at line 578 of file qtextbrowser.cpp.

References QTextEditPrivate::control, cursor, QWidgetTextControl::document(), emitHighlighted(), QTextCursor::KeepAnchor, resolveUrl(), QWidgetTextControl::setCursorIsFocusIndicator(), setSource(), QWidgetTextControl::setTextCursor(), QWidgetTextControl::textCursor(), and url.

+ Here is the call graph for this function:

◆ setSource()

Member Data Documentation

◆ connections

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

Definition at line 137 of file qtextbrowser.cpp.

Referenced by init().

◆ currentType

QTextDocument::ResourceType QTextBrowserPrivate::currentType

Definition at line 103 of file qtextbrowser.cpp.

Referenced by setSource().

◆ currentURL

QUrl QTextBrowserPrivate::currentURL

Definition at line 90 of file qtextbrowser.cpp.

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

◆ forceLoadOnSourceChange

bool QTextBrowserPrivate::forceLoadOnSourceChange

Definition at line 98 of file qtextbrowser.cpp.

Referenced by setSource().

◆ forwardStack

QStack<HistoryEntry> QTextBrowserPrivate::forwardStack

Definition at line 88 of file qtextbrowser.cpp.

◆ home

QUrl QTextBrowserPrivate::home

Definition at line 89 of file qtextbrowser.cpp.

Referenced by setSource().

◆ oldCursor

QCursor QTextBrowserPrivate::oldCursor

Definition at line 106 of file qtextbrowser.cpp.

Referenced by activateAnchor(), highlightLink(), and init().

◆ openExternalLinks

bool QTextBrowserPrivate::openExternalLinks

Definition at line 100 of file qtextbrowser.cpp.

Referenced by activateAnchor().

◆ openLinks

bool QTextBrowserPrivate::openLinks

Definition at line 101 of file qtextbrowser.cpp.

Referenced by activateAnchor().

◆ searchPaths

QStringList QTextBrowserPrivate::searchPaths

Definition at line 92 of file qtextbrowser.cpp.

Referenced by findFile().

◆ stack

QStack<HistoryEntry> QTextBrowserPrivate::stack

Definition at line 87 of file qtextbrowser.cpp.

◆ textOrSourceChanged

bool QTextBrowserPrivate::textOrSourceChanged

Definition at line 97 of file qtextbrowser.cpp.

Referenced by activateAnchor(), and setSource().


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