![]() |
Qt 6.x
The Qt SDK
|
Classes | |
struct | HistoryEntry |
Public Attributes | |
QStack< HistoryEntry > | stack |
QStack< HistoryEntry > | forwardStack |
QUrl | home |
QUrl | currentURL |
QStringList | searchPaths |
bool | textOrSourceChanged |
bool | forceLoadOnSourceChange |
bool | openExternalLinks |
bool | openLinks |
QTextDocument::ResourceType | currentType |
QCursor | oldCursor |
![]() | |
QWidgetTextControl * | control |
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 |
Definition at line 38 of file qtextbrowser.cpp.
|
inline |
Definition at line 42 of file qtextbrowser.cpp.
Definition at line 193 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().
|
inline |
Definition at line 106 of file qtextbrowser.cpp.
References QString::isEmpty(), and QUrl::path().
Referenced by init().
Definition at line 234 of file qtextbrowser.cpp.
References emitHighlighted(), QString::isEmpty(), oldCursor, Qt::PointingHandCursor, resolveUrl(), url, and viewport().
Referenced by init().
QTextBrowserPrivate::HistoryEntry QTextBrowserPrivate::createHistoryEntry | ( | ) | const |
Definition at line 553 of file qtextbrowser.cpp.
References QTextEditPrivate::control, cursor, QWidgetTextControl::cursorIsFocusIndicator(), and QWidgetTextControl::textCursor().
Definition at line 127 of file qtextbrowser.cpp.
Referenced by _q_highlightLink(), restoreHistoryEntry(), and setSource().
Definition at line 135 of file qtextbrowser.cpp.
References fileName, QFileInfo::isReadable(), and searchPaths.
|
inline |
Definition at line 64 of file qtextbrowser.cpp.
References i.
void QTextBrowserPrivate::init | ( | ) |
Definition at line 663 of file qtextbrowser.cpp.
References _q_activateAnchor(), _q_documentModified(), _q_highlightLink(), QObject::connect(), QTextEditPrivate::control, oldCursor, QWidgetTextControl::setTextInteractionFlags(), shouldEnableInputMethod(), SIGNAL, SLOT, Qt::TextBrowserInteraction, viewport(), and Qt::WA_InputMethodEnabled.
Definition at line 119 of file qtextbrowser.cpp.
References url.
Reimplemented from QTextEditPrivate.
Definition at line 168 of file qtextbrowser.cpp.
References QFileInfo::absolutePath(), currentURL, QFileInfo::exists(), fi, QUrl::fromLocalFile(), QUrl::hasFragment(), QFileInfo::isAbsolute(), QString::isEmpty(), QUrl::isRelative(), QUrl::path(), QUrl::resolved(), QUrl::scheme(), QDir::separator(), QUrl::toLocalFile(), and url.
Referenced by _q_activateAnchor(), _q_highlightLink(), restoreHistoryEntry(), and setSource().
void QTextBrowserPrivate::restoreHistoryEntry | ( | const HistoryEntry & | entry | ) |
Definition at line 572 of file qtextbrowser.cpp.
References QTextEditPrivate::control, cursor, QWidgetTextControl::document(), emitHighlighted(), QTextCursor::KeepAnchor, resolveUrl(), QWidgetTextControl::setCursorIsFocusIndicator(), setSource(), QWidgetTextControl::setTextCursor(), QWidgetTextControl::textCursor(), and url.
void QTextBrowserPrivate::setSource | ( | const QUrl & | url, |
QTextDocument::ResourceType | type | ||
) |
Definition at line 253 of file qtextbrowser.cpp.
References QUrl::adjusted(), ba, baseUrl, QByteArray::constData(), QStringView::contains(), currentType, currentURL, QStringDecoder::decoderForHtml(), QTextDocument::DocumentUrl, emit, emitHighlighted(), QUrl::fileName(), fileName, forceLoadOnSourceChange, QUrl::fragment(), QString::fromUtf8(), home, QTextDocument::HtmlResource, QString::isEmpty(), QUrl::isValid(), QTextDocument::MarkdownResource, QUrl::path(), QCursor::pos(), Q_UNLIKELY, qCDebug, qWarning, QUrl::RemoveFilename, QUrl::resolved(), resolveUrl(), QGuiApplication::restoreOverrideCursor(), QUrl::setFragment(), QGuiApplication::setOverrideCursor(), QWhatsThis::showText(), QTextCursor::Start, QStringView::startsWith(), textOrSourceChanged, QString::toLatin1(), QUrl::toString(), txt, QTextDocument::UnknownResource, url, QStringConverter::Utf8, and Qt::WaitCursor.
Referenced by restoreHistoryEntry().
QTextDocument::ResourceType QTextBrowserPrivate::currentType |
Definition at line 98 of file qtextbrowser.cpp.
Referenced by setSource().
QUrl QTextBrowserPrivate::currentURL |
Definition at line 85 of file qtextbrowser.cpp.
Referenced by _q_activateAnchor(), resolveUrl(), and setSource().
bool QTextBrowserPrivate::forceLoadOnSourceChange |
Definition at line 93 of file qtextbrowser.cpp.
Referenced by setSource().
QStack<HistoryEntry> QTextBrowserPrivate::forwardStack |
Definition at line 83 of file qtextbrowser.cpp.
QUrl QTextBrowserPrivate::home |
Definition at line 84 of file qtextbrowser.cpp.
Referenced by setSource().
QCursor QTextBrowserPrivate::oldCursor |
Definition at line 101 of file qtextbrowser.cpp.
Referenced by _q_activateAnchor(), _q_highlightLink(), and init().
bool QTextBrowserPrivate::openExternalLinks |
Definition at line 95 of file qtextbrowser.cpp.
Referenced by _q_activateAnchor().
bool QTextBrowserPrivate::openLinks |
Definition at line 96 of file qtextbrowser.cpp.
Referenced by _q_activateAnchor().
QStringList QTextBrowserPrivate::searchPaths |
Definition at line 87 of file qtextbrowser.cpp.
Referenced by findFile().
QStack<HistoryEntry> QTextBrowserPrivate::stack |
Definition at line 82 of file qtextbrowser.cpp.
bool QTextBrowserPrivate::textOrSourceChanged |
Definition at line 92 of file qtextbrowser.cpp.
Referenced by _q_activateAnchor(), and setSource().