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>.
|
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 |
std::array< QMetaObject::Connection, 3 > | connections |
Public Attributes inherited from QTextEditPrivate | |
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 |
QString | anchorToScrollToWhenVisible |
QString | placeholderText |
Qt::CursorShape | cursorToRestoreAfterHover = Qt::IBeamCursor |
std::array< QMetaObject::Connection, 13 > | connections |
Definition at line 38 of file qtextbrowser.cpp.
|
inline |
Definition at line 42 of file qtextbrowser.cpp.
|
inline |
Definition at line 49 of file qtextbrowser.cpp.
References connection, and QObject::disconnect().
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().
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.
|
inline |
Definition at line 111 of file qtextbrowser.cpp.
References QString::isEmpty(), and QUrl::path().
Referenced by init().
Definition at line 132 of file qtextbrowser.cpp.
Referenced by highlightLink(), restoreHistoryEntry(), and setSource().
Definition at line 141 of file qtextbrowser.cpp.
References QString::append(), fileName, QFileInfo::isReadable(), and searchPaths.
Definition at line 240 of file qtextbrowser.cpp.
References emitHighlighted(), QString::isEmpty(), oldCursor, Qt::PointingHandCursor, resolveUrl(), url, and viewport().
Referenced by init().
|
inline |
Definition at line 69 of file qtextbrowser.cpp.
References i.
void QTextBrowserPrivate::init | ( | ) |
Definition at line 669 of file qtextbrowser.cpp.
References activateAnchor(), QObjectPrivate::connect(), connections, QTextDocument::contentsChanged(), QTextEditPrivate::control, documentModified(), highlightLink(), QWidgetTextControl::linkActivated(), QWidgetTextControl::linkHovered(), oldCursor, QWidgetTextControl::setTextInteractionFlags(), shouldEnableInputMethod(), Qt::TextBrowserInteraction, viewport(), and Qt::WA_InputMethodEnabled.
Definition at line 124 of file qtextbrowser.cpp.
References url.
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().
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.
void QTextBrowserPrivate::setSource | ( | const QUrl & | url, |
QTextDocument::ResourceType | type ) |
Definition at line 259 of file qtextbrowser.cpp.
References QUrl::adjusted(), ba, baseUrl, QByteArray::constData(), currentType, currentURL, QStringDecoder::decoderForHtml(), QTextDocument::DocumentUrl, emit, emitHighlighted(), QUrl::fileName(), fileName, forceLoadOnSourceChange, QUrl::fragment(), QString::fromUtf8(), home, QTextDocument::HtmlResource, QString::isEmpty(), QUrl::isValid(), QStringView::left(), 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, textOrSourceChanged, QString::toLatin1(), QVariant::toString(), QUrl::toString(), txt, QTextDocument::UnknownResource, url, QStringConverter::Utf8, and Qt::WaitCursor.
Referenced by restoreHistoryEntry().
std::array<QMetaObject::Connection, 3> QTextBrowserPrivate::connections |
Definition at line 137 of file qtextbrowser.cpp.
Referenced by init().
QTextDocument::ResourceType QTextBrowserPrivate::currentType |
Definition at line 103 of file qtextbrowser.cpp.
Referenced by setSource().
QUrl QTextBrowserPrivate::currentURL |
Definition at line 90 of file qtextbrowser.cpp.
Referenced by activateAnchor(), resolveUrl(), and setSource().
bool QTextBrowserPrivate::forceLoadOnSourceChange |
Definition at line 98 of file qtextbrowser.cpp.
Referenced by setSource().
QStack<HistoryEntry> QTextBrowserPrivate::forwardStack |
Definition at line 88 of file qtextbrowser.cpp.
QUrl QTextBrowserPrivate::home |
Definition at line 89 of file qtextbrowser.cpp.
Referenced by setSource().
QCursor QTextBrowserPrivate::oldCursor |
Definition at line 106 of file qtextbrowser.cpp.
Referenced by activateAnchor(), highlightLink(), and init().
bool QTextBrowserPrivate::openExternalLinks |
Definition at line 100 of file qtextbrowser.cpp.
Referenced by activateAnchor().
bool QTextBrowserPrivate::openLinks |
Definition at line 101 of file qtextbrowser.cpp.
Referenced by activateAnchor().
QStringList QTextBrowserPrivate::searchPaths |
Definition at line 92 of file qtextbrowser.cpp.
Referenced by findFile().
QStack<HistoryEntry> QTextBrowserPrivate::stack |
Definition at line 87 of file qtextbrowser.cpp.
bool QTextBrowserPrivate::textOrSourceChanged |
Definition at line 97 of file qtextbrowser.cpp.
Referenced by activateAnchor(), and setSource().