![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qwidgettextcontrol_p_p.h>
Additional Inherited Members | |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
![]() | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1, typename Func2> | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1, typename Func2> | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Definition at line 38 of file qwidgettextcontrol_p_p.h.
QWidgetTextControlPrivate::QWidgetTextControlPrivate | ( | ) |
Definition at line 99 of file qwidgettextcontrol.cpp.
References acceptRichText, cursorIsFocusIndicator, cursorOn, cursorVisible, doc, dragEnabled, hadSelectionOnMousePress, hasFocus, hideCursor, ignoreAutomaticScrollbarAdjustement, ignoreUnusedNavigationEvents, isEnabled, lastSelectionAnchor, lastSelectionPosition, openExternalLinks, overwriteMode, preeditCursor, and wordSelectionEnabled.
void QWidgetTextControlPrivate::_q_contentsChanged | ( | int | from, |
int | charsRemoved, | ||
int | charsAdded ) |
Definition at line 655 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::_q_copyLink | ( | ) |
Definition at line 3392 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::_q_deleteSelected | ( | ) |
Definition at line 832 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::_q_documentLayoutChanged | ( | ) |
Definition at line 689 of file qwidgettextcontrol.cpp.
References doc.
Referenced by setContent().
void QWidgetTextControlPrivate::_q_emitCursorPosChanged | ( | const QTextCursor & | someCursor | ) |
Definition at line 646 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::_q_setCursorAfterUndoRedo | ( | int | undoPosition, |
int | charsAdded, | ||
int | charsRemoved ) |
void QWidgetTextControlPrivate::_q_updateBlock | ( | const QTextBlock & | block | ) |
Definition at line 1397 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::_q_updateCurrentCharFormatAndSelection | ( | ) |
Definition at line 628 of file qwidgettextcontrol.cpp.
References selectionChanged(), and updateCurrentCharFormat().
Referenced by mouseMoveEvent(), mousePressEvent(), and setContent().
Definition at line 2906 of file qwidgettextcontrol.cpp.
References cursorIsFocusIndicator, hasFocus, and openExternalLinks.
QString QWidgetTextControlPrivate::anchorForCursor | ( | const QTextCursor & | anchor | ) | const |
Definition at line 2275 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::append | ( | const QString & | text, |
Qt::TextFormat | format = Qt::AutoText ) |
Definition at line 3248 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::commitPreedit | ( | ) |
Definition at line 2994 of file qwidgettextcontrol.cpp.
References isPreediting(), and preeditCursor.
Referenced by mouseDoubleClickEvent(), mouseMoveEvent(), and mousePressEvent().
void QWidgetTextControlPrivate::contextMenuEvent | ( | const QPoint & | screenPos, |
const QPointF & | docPos, | ||
QWidget * | contextWidget ) |
Definition at line 1945 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::createAutoBulletList | ( | ) |
Definition at line 381 of file qwidgettextcontrol.cpp.
bool QWidgetTextControlPrivate::cursorMoveKeyEvent | ( | QKeyEvent * | e | ) |
Definition at line 126 of file qwidgettextcontrol.cpp.
QRectF QWidgetTextControlPrivate::cursorRectPlusUnicodeDirectionMarkers | ( | const QTextCursor & | cursor | ) | const |
Definition at line 2435 of file qwidgettextcontrol.cpp.
Definition at line 1967 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::dragLeaveEvent | ( | ) |
Definition at line 1980 of file qwidgettextcontrol.cpp.
bool QWidgetTextControlPrivate::dragMoveEvent | ( | QEvent * | e, |
const QMimeData * | mimeData, | ||
const QPointF & | pos ) |
Definition at line 1991 of file qwidgettextcontrol.cpp.
bool QWidgetTextControlPrivate::dropEvent | ( | const QMimeData * | mimeData, |
const QPointF & | pos, | ||
Qt::DropAction | dropAction, | ||
QObject * | source ) |
Definition at line 2015 of file qwidgettextcontrol.cpp.
References repaintSelection().
void QWidgetTextControlPrivate::extendBlockwiseSelection | ( | int | suggestedNewPosition | ) |
Definition at line 802 of file qwidgettextcontrol.cpp.
References selectionChanged(), and setClipboardSelection().
Referenced by mouseMoveEvent(), and mousePressEvent().
void QWidgetTextControlPrivate::extendWordwiseSelection | ( | int | suggestedNewPosition, |
qreal | mouseXPosition ) |
Definition at line 728 of file qwidgettextcontrol.cpp.
References selectionChanged(), setClipboardSelection(), and wordSelectionEnabled.
void QWidgetTextControlPrivate::focusEvent | ( | QFocusEvent * | e | ) |
Definition at line 2246 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::gotoNextTableCell | ( | ) |
Definition at line 343 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::gotoPreviousTableCell | ( | ) |
Definition at line 362 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::indent | ( | ) |
Definition at line 306 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::init | ( | Qt::TextFormat | format = Qt::RichText, |
const QString & | text = QString(), | ||
QTextDocument * | document = nullptr ) |
Definition at line 399 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::inputMethodEvent | ( | QInputMethodEvent * | e | ) |
Definition at line 2038 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::insertParagraphSeparator | ( | ) |
Definition at line 3205 of file qwidgettextcontrol.cpp.
bool QWidgetTextControlPrivate::isPreediting | ( | ) | const |
Definition at line 2985 of file qwidgettextcontrol.cpp.
Referenced by commitPreedit(), mouseMoveEvent(), and sendMouseEventToInputContext().
Definition at line 1217 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::mouseDoubleClickEvent | ( | QEvent * | e, |
Qt::MouseButton | button, | ||
const QPointF & | pos, | ||
Qt::KeyboardModifiers | modifiers, | ||
Qt::MouseButtons | buttons, | ||
const QPoint & | globalPos ) |
Definition at line 1869 of file qwidgettextcontrol.cpp.
References commitPreedit(), cursorIsFocusIndicator, selectionChanged(), and setClipboardSelection().
void QWidgetTextControlPrivate::mouseMoveEvent | ( | QEvent * | e, |
Qt::MouseButton | button, | ||
const QPointF & | pos, | ||
Qt::KeyboardModifiers | modifiers, | ||
Qt::MouseButtons | buttons, | ||
const QPoint & | globalPos ) |
Definition at line 1676 of file qwidgettextcontrol.cpp.
References _q_updateCurrentCharFormatAndSelection(), commitPreedit(), extendBlockwiseSelection(), isPreediting(), mightStartDrag, selectionChanged(), and startDrag().
void QWidgetTextControlPrivate::mousePressEvent | ( | QEvent * | e, |
Qt::MouseButton | button, | ||
const QPointF & | pos, | ||
Qt::KeyboardModifiers | modifiers, | ||
Qt::MouseButtons | buttons, | ||
const QPoint & | globalPos ) |
Definition at line 1566 of file qwidgettextcontrol.cpp.
References _q_updateCurrentCharFormatAndSelection(), commitPreedit(), cursorIsFocusIndicator, extendBlockwiseSelection(), repaintSelection(), and selectionChanged().
void QWidgetTextControlPrivate::mouseReleaseEvent | ( | QEvent * | e, |
Qt::MouseButton | button, | ||
const QPointF & | pos, | ||
Qt::KeyboardModifiers | modifiers, | ||
Qt::MouseButtons | buttons, | ||
const QPoint & | globalPos ) |
Definition at line 1770 of file qwidgettextcontrol.cpp.
References mousePressed, selectionChanged(), and setClipboardSelection().
void QWidgetTextControlPrivate::outdent | ( | ) |
Definition at line 326 of file qwidgettextcontrol.cpp.
QRectF QWidgetTextControlPrivate::rectForPosition | ( | int | position | ) | const |
Definition at line 1405 of file qwidgettextcontrol.cpp.
References doc, overwriteMode, and preeditCursor.
void QWidgetTextControlPrivate::repaintCursor | ( | ) |
Definition at line 561 of file qwidgettextcontrol.cpp.
Referenced by updateCursorBlinking().
void QWidgetTextControlPrivate::repaintOldAndNewSelection | ( | const QTextCursor & | oldSelection | ) |
Definition at line 567 of file qwidgettextcontrol.cpp.
|
inline |
Definition at line 69 of file qwidgettextcontrol_p_p.h.
Referenced by dropEvent(), and mousePressEvent().
Definition at line 588 of file qwidgettextcontrol.cpp.
Referenced by _q_updateCurrentCharFormatAndSelection(), extendBlockwiseSelection(), extendWordwiseSelection(), mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
|
inline |
Definition at line 98 of file qwidgettextcontrol_p_p.h.
QRectF QWidgetTextControlPrivate::selectionRect | ( | const QTextCursor & | cursor | ) | const |
bool QWidgetTextControlPrivate::sendMouseEventToInputContext | ( | QEvent * | e, |
QEvent::Type | eventType, | ||
Qt::MouseButton | button, | ||
const QPointF & | pos, | ||
Qt::KeyboardModifiers | modifiers, | ||
Qt::MouseButtons | buttons, | ||
const QPoint & | globalPos ) |
Definition at line 1911 of file qwidgettextcontrol.cpp.
References isPreediting().
void QWidgetTextControlPrivate::setBlinkingCursorEnabled | ( | bool | enable | ) |
void QWidgetTextControlPrivate::setClipboardSelection | ( | ) |
Definition at line 635 of file qwidgettextcontrol.cpp.
Referenced by extendBlockwiseSelection(), extendWordwiseSelection(), mouseDoubleClickEvent(), and mouseReleaseEvent().
void QWidgetTextControlPrivate::setContent | ( | Qt::TextFormat | format = Qt::RichText, |
const QString & | text = QString(), | ||
QTextDocument * | document = nullptr ) |
Definition at line 408 of file qwidgettextcontrol.cpp.
References _q_documentLayoutChanged(), _q_updateCurrentCharFormatAndSelection(), and doc.
Definition at line 542 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::setCursorPosition | ( | int | pos, |
QTextCursor::MoveMode | mode = QTextCursor::MoveAnchor ) |
Definition at line 551 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::setCursorVisible | ( | bool | visible | ) |
Definition at line 701 of file qwidgettextcontrol.cpp.
References cursorVisible, and updateCursorBlinking().
void QWidgetTextControlPrivate::startDrag | ( | ) |
Definition at line 509 of file qwidgettextcontrol.cpp.
Referenced by mouseMoveEvent().
void QWidgetTextControlPrivate::updateCurrentCharFormat | ( | ) |
Definition at line 293 of file qwidgettextcontrol.cpp.
Referenced by _q_updateCurrentCharFormatAndSelection().
void QWidgetTextControlPrivate::updateCursorBlinking | ( | ) |
Definition at line 715 of file qwidgettextcontrol.cpp.
References cursorOn, cursorVisible, and repaintCursor().
Referenced by setCursorVisible().
bool QWidgetTextControlPrivate::acceptRichText |
Definition at line 181 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
QString QWidgetTextControlPrivate::anchorOnMousePress |
Definition at line 196 of file qwidgettextcontrol_p_p.h.
QTextBlock QWidgetTextControlPrivate::blockWithMarkerUnderMouse |
Definition at line 197 of file qwidgettextcontrol_p_p.h.
Definition at line 170 of file qwidgettextcontrol_p_p.h.
QTextCursor QWidgetTextControlPrivate::cursor |
Definition at line 152 of file qwidgettextcontrol_p_p.h.
QBasicTimer QWidgetTextControlPrivate::cursorBlinkTimer |
Definition at line 160 of file qwidgettextcontrol_p_p.h.
bool QWidgetTextControlPrivate::cursorIsFocusIndicator |
Definition at line 153 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), activateLinkUnderCursor(), mouseDoubleClickEvent(), and mousePressEvent().
bool QWidgetTextControlPrivate::cursorOn |
Definition at line 150 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), and updateCursorBlinking().
bool QWidgetTextControlPrivate::cursorVisible |
Definition at line 151 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), setCursorVisible(), and updateCursorBlinking().
QTextCursor QWidgetTextControlPrivate::dndFeedbackCursor |
Definition at line 156 of file qwidgettextcontrol_p_p.h.
QTextDocument* QWidgetTextControlPrivate::doc |
Definition at line 149 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), _q_documentLayoutChanged(), rectForPosition(), and setContent().
bool QWidgetTextControlPrivate::dragEnabled |
Definition at line 164 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
QList<QAbstractTextDocumentLayout::Selection> QWidgetTextControlPrivate::extraSelections |
Definition at line 186 of file qwidgettextcontrol_p_p.h.
bool QWidgetTextControlPrivate::hadSelectionOnMousePress |
Definition at line 198 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
bool QWidgetTextControlPrivate::hasFocus |
Definition at line 189 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), and activateLinkUnderCursor().
bool QWidgetTextControlPrivate::hideCursor |
Definition at line 184 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
QString QWidgetTextControlPrivate::highlightedAnchor |
Definition at line 195 of file qwidgettextcontrol_p_p.h.
bool QWidgetTextControlPrivate::ignoreAutomaticScrollbarAdjustement |
Definition at line 175 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
bool QWidgetTextControlPrivate::ignoreUnusedNavigationEvents |
Definition at line 200 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
Qt::TextInteractionFlags QWidgetTextControlPrivate::interactionFlags |
Definition at line 158 of file qwidgettextcontrol_p_p.h.
bool QWidgetTextControlPrivate::isEnabled |
Definition at line 193 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
QTextCharFormat QWidgetTextControlPrivate::lastCharFormat |
Definition at line 154 of file qwidgettextcontrol_p_p.h.
int QWidgetTextControlPrivate::lastSelectionAnchor |
Definition at line 173 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
int QWidgetTextControlPrivate::lastSelectionPosition |
Definition at line 172 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
QString QWidgetTextControlPrivate::linkToCopy |
Definition at line 205 of file qwidgettextcontrol_p_p.h.
bool QWidgetTextControlPrivate::mightStartDrag |
Definition at line 168 of file qwidgettextcontrol_p_p.h.
Referenced by mouseMoveEvent().
bool QWidgetTextControlPrivate::mousePressed |
Definition at line 166 of file qwidgettextcontrol_p_p.h.
Referenced by mouseReleaseEvent().
QPoint QWidgetTextControlPrivate::mousePressPos |
Definition at line 169 of file qwidgettextcontrol_p_p.h.
bool QWidgetTextControlPrivate::openExternalLinks |
Definition at line 201 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), and activateLinkUnderCursor().
bool QWidgetTextControlPrivate::overwriteMode |
Definition at line 180 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), and rectForPosition().
QPalette QWidgetTextControlPrivate::palette |
Definition at line 188 of file qwidgettextcontrol_p_p.h.
int QWidgetTextControlPrivate::preeditCursor |
Definition at line 183 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), commitPreedit(), and rectForPosition().
QTextCursor QWidgetTextControlPrivate::selectedBlockOnTrippleClick |
Definition at line 178 of file qwidgettextcontrol_p_p.h.
QTextCursor QWidgetTextControlPrivate::selectedWordOnDoubleClick |
Definition at line 177 of file qwidgettextcontrol_p_p.h.
QPointF QWidgetTextControlPrivate::trippleClickPoint |
Definition at line 162 of file qwidgettextcontrol_p_p.h.
QBasicTimer QWidgetTextControlPrivate::trippleClickTimer |
Definition at line 161 of file qwidgettextcontrol_p_p.h.
bool QWidgetTextControlPrivate::wordSelectionEnabled |
Definition at line 203 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), and extendWordwiseSelection().