![]() |
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 | |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Static Public Member Functions inherited from QObjectPrivate | |
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 39 of file qwidgettextcontrol_p_p.h.
QWidgetTextControlPrivate::QWidgetTextControlPrivate | ( | ) |
Definition at line 100 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 656 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::_q_copyLink | ( | ) |
Definition at line 3401 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::_q_deleteSelected | ( | ) |
Definition at line 833 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::_q_documentLayoutChanged | ( | ) |
Definition at line 690 of file qwidgettextcontrol.cpp.
References doc.
Referenced by setContent().
void QWidgetTextControlPrivate::_q_emitCursorPosChanged | ( | const QTextCursor & | someCursor | ) |
Definition at line 647 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::_q_setCursorAfterUndoRedo | ( | int | undoPosition, |
int | charsAdded, | ||
int | charsRemoved ) |
void QWidgetTextControlPrivate::_q_updateBlock | ( | const QTextBlock & | block | ) |
Definition at line 1398 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::_q_updateCurrentCharFormatAndSelection | ( | ) |
Definition at line 629 of file qwidgettextcontrol.cpp.
References selectionChanged(), and updateCurrentCharFormat().
Referenced by mouseMoveEvent(), mousePressEvent(), and setContent().
Definition at line 2915 of file qwidgettextcontrol.cpp.
References cursorIsFocusIndicator, hasFocus, and openExternalLinks.
QString QWidgetTextControlPrivate::anchorForCursor | ( | const QTextCursor & | anchor | ) | const |
Definition at line 2284 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::append | ( | const QString & | text, |
Qt::TextFormat | format = Qt::AutoText ) |
Definition at line 3257 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::commitPreedit | ( | ) |
Definition at line 3003 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 1946 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::createAutoBulletList | ( | ) |
Definition at line 382 of file qwidgettextcontrol.cpp.
bool QWidgetTextControlPrivate::cursorMoveKeyEvent | ( | QKeyEvent * | e | ) |
Definition at line 127 of file qwidgettextcontrol.cpp.
QRectF QWidgetTextControlPrivate::cursorRectPlusUnicodeDirectionMarkers | ( | const QTextCursor & | cursor | ) | const |
Definition at line 2444 of file qwidgettextcontrol.cpp.
Definition at line 1968 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::dragLeaveEvent | ( | ) |
Definition at line 1981 of file qwidgettextcontrol.cpp.
bool QWidgetTextControlPrivate::dragMoveEvent | ( | QEvent * | e, |
const QMimeData * | mimeData, | ||
const QPointF & | pos ) |
Definition at line 1992 of file qwidgettextcontrol.cpp.
bool QWidgetTextControlPrivate::dropEvent | ( | const QMimeData * | mimeData, |
const QPointF & | pos, | ||
Qt::DropAction | dropAction, | ||
QObject * | source ) |
Definition at line 2016 of file qwidgettextcontrol.cpp.
References repaintSelection().
void QWidgetTextControlPrivate::extendBlockwiseSelection | ( | int | suggestedNewPosition | ) |
Definition at line 803 of file qwidgettextcontrol.cpp.
References selectionChanged(), and setClipboardSelection().
Referenced by mouseMoveEvent(), and mousePressEvent().
void QWidgetTextControlPrivate::extendWordwiseSelection | ( | int | suggestedNewPosition, |
qreal | mouseXPosition ) |
Definition at line 729 of file qwidgettextcontrol.cpp.
References selectionChanged(), setClipboardSelection(), and wordSelectionEnabled.
void QWidgetTextControlPrivate::focusEvent | ( | QFocusEvent * | e | ) |
Definition at line 2255 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::gotoNextTableCell | ( | ) |
Definition at line 344 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::gotoPreviousTableCell | ( | ) |
Definition at line 363 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::indent | ( | ) |
Definition at line 307 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::init | ( | Qt::TextFormat | format = Qt::RichText, |
const QString & | text = QString(), | ||
QTextDocument * | document = nullptr ) |
Definition at line 400 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::inputMethodEvent | ( | QInputMethodEvent * | e | ) |
Definition at line 2039 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::insertParagraphSeparator | ( | ) |
Definition at line 3214 of file qwidgettextcontrol.cpp.
bool QWidgetTextControlPrivate::isPreediting | ( | ) | const |
Definition at line 2994 of file qwidgettextcontrol.cpp.
Referenced by commitPreedit(), mouseMoveEvent(), and sendMouseEventToInputContext().
Definition at line 1218 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 1870 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 1677 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 1567 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 1771 of file qwidgettextcontrol.cpp.
References mousePressed, selectionChanged(), and setClipboardSelection().
void QWidgetTextControlPrivate::outdent | ( | ) |
Definition at line 327 of file qwidgettextcontrol.cpp.
QRectF QWidgetTextControlPrivate::rectForPosition | ( | int | position | ) | const |
Definition at line 1406 of file qwidgettextcontrol.cpp.
References doc, overwriteMode, and preeditCursor.
void QWidgetTextControlPrivate::repaintCursor | ( | ) |
Definition at line 562 of file qwidgettextcontrol.cpp.
Referenced by updateCursorBlinking().
void QWidgetTextControlPrivate::repaintOldAndNewSelection | ( | const QTextCursor & | oldSelection | ) |
Definition at line 568 of file qwidgettextcontrol.cpp.
|
inline |
Definition at line 70 of file qwidgettextcontrol_p_p.h.
Referenced by dropEvent(), and mousePressEvent().
void QWidgetTextControlPrivate::selectionChanged | ( | bool | forceEmitSelectionChanged = false | ) |
Definition at line 589 of file qwidgettextcontrol.cpp.
Referenced by _q_updateCurrentCharFormatAndSelection(), extendBlockwiseSelection(), extendWordwiseSelection(), mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
|
inline |
Definition at line 99 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 1912 of file qwidgettextcontrol.cpp.
References isPreediting().
void QWidgetTextControlPrivate::setBlinkingCursorEnabled | ( | bool | enable | ) |
void QWidgetTextControlPrivate::setClipboardSelection | ( | ) |
Definition at line 636 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 409 of file qwidgettextcontrol.cpp.
References _q_documentLayoutChanged(), _q_updateCurrentCharFormatAndSelection(), and doc.
Definition at line 543 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::setCursorPosition | ( | int | pos, |
QTextCursor::MoveMode | mode = QTextCursor::MoveAnchor ) |
Definition at line 552 of file qwidgettextcontrol.cpp.
void QWidgetTextControlPrivate::setCursorVisible | ( | bool | visible | ) |
Definition at line 702 of file qwidgettextcontrol.cpp.
References cursorVisible, and updateCursorBlinking().
void QWidgetTextControlPrivate::startDrag | ( | ) |
Definition at line 510 of file qwidgettextcontrol.cpp.
Referenced by mouseMoveEvent().
void QWidgetTextControlPrivate::updateCurrentCharFormat | ( | ) |
Definition at line 294 of file qwidgettextcontrol.cpp.
Referenced by _q_updateCurrentCharFormatAndSelection().
void QWidgetTextControlPrivate::updateCursorBlinking | ( | ) |
Definition at line 716 of file qwidgettextcontrol.cpp.
References cursorOn, cursorVisible, and repaintCursor().
Referenced by setCursorVisible().
bool QWidgetTextControlPrivate::acceptRichText |
Definition at line 182 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
QString QWidgetTextControlPrivate::anchorOnMousePress |
Definition at line 197 of file qwidgettextcontrol_p_p.h.
QTextBlock QWidgetTextControlPrivate::blockWithMarkerUnderMouse |
Definition at line 198 of file qwidgettextcontrol_p_p.h.
Definition at line 171 of file qwidgettextcontrol_p_p.h.
QTextCursor QWidgetTextControlPrivate::cursor |
Definition at line 153 of file qwidgettextcontrol_p_p.h.
QBasicTimer QWidgetTextControlPrivate::cursorBlinkTimer |
Definition at line 161 of file qwidgettextcontrol_p_p.h.
bool QWidgetTextControlPrivate::cursorIsFocusIndicator |
Definition at line 154 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), activateLinkUnderCursor(), mouseDoubleClickEvent(), and mousePressEvent().
bool QWidgetTextControlPrivate::cursorOn |
Definition at line 151 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), and updateCursorBlinking().
bool QWidgetTextControlPrivate::cursorVisible |
Definition at line 152 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), setCursorVisible(), and updateCursorBlinking().
QTextCursor QWidgetTextControlPrivate::dndFeedbackCursor |
Definition at line 157 of file qwidgettextcontrol_p_p.h.
QTextDocument* QWidgetTextControlPrivate::doc |
Definition at line 150 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), _q_documentLayoutChanged(), rectForPosition(), and setContent().
bool QWidgetTextControlPrivate::dragEnabled |
Definition at line 165 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
QList<QAbstractTextDocumentLayout::Selection> QWidgetTextControlPrivate::extraSelections |
Definition at line 187 of file qwidgettextcontrol_p_p.h.
bool QWidgetTextControlPrivate::hadSelectionOnMousePress |
Definition at line 199 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
bool QWidgetTextControlPrivate::hasFocus |
Definition at line 190 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), and activateLinkUnderCursor().
bool QWidgetTextControlPrivate::hideCursor |
Definition at line 185 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
QString QWidgetTextControlPrivate::highlightedAnchor |
Definition at line 196 of file qwidgettextcontrol_p_p.h.
bool QWidgetTextControlPrivate::ignoreAutomaticScrollbarAdjustement |
Definition at line 176 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
bool QWidgetTextControlPrivate::ignoreUnusedNavigationEvents |
Definition at line 201 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
Qt::TextInteractionFlags QWidgetTextControlPrivate::interactionFlags |
Definition at line 159 of file qwidgettextcontrol_p_p.h.
bool QWidgetTextControlPrivate::isEnabled |
Definition at line 194 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
QTextCharFormat QWidgetTextControlPrivate::lastCharFormat |
Definition at line 155 of file qwidgettextcontrol_p_p.h.
int QWidgetTextControlPrivate::lastSelectionAnchor |
Definition at line 174 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
int QWidgetTextControlPrivate::lastSelectionPosition |
Definition at line 173 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate().
QString QWidgetTextControlPrivate::linkToCopy |
Definition at line 206 of file qwidgettextcontrol_p_p.h.
bool QWidgetTextControlPrivate::mightStartDrag |
Definition at line 169 of file qwidgettextcontrol_p_p.h.
Referenced by mouseMoveEvent().
bool QWidgetTextControlPrivate::mousePressed |
Definition at line 167 of file qwidgettextcontrol_p_p.h.
Referenced by mouseReleaseEvent().
QPoint QWidgetTextControlPrivate::mousePressPos |
Definition at line 170 of file qwidgettextcontrol_p_p.h.
bool QWidgetTextControlPrivate::openExternalLinks |
Definition at line 202 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), and activateLinkUnderCursor().
bool QWidgetTextControlPrivate::overwriteMode |
Definition at line 181 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), and rectForPosition().
QPalette QWidgetTextControlPrivate::palette |
Definition at line 189 of file qwidgettextcontrol_p_p.h.
int QWidgetTextControlPrivate::preeditCursor |
Definition at line 184 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), commitPreedit(), and rectForPosition().
QTextCursor QWidgetTextControlPrivate::selectedBlockOnTrippleClick |
Definition at line 179 of file qwidgettextcontrol_p_p.h.
QTextCursor QWidgetTextControlPrivate::selectedWordOnDoubleClick |
Definition at line 178 of file qwidgettextcontrol_p_p.h.
QPointF QWidgetTextControlPrivate::trippleClickPoint |
Definition at line 163 of file qwidgettextcontrol_p_p.h.
QBasicTimer QWidgetTextControlPrivate::trippleClickTimer |
Definition at line 162 of file qwidgettextcontrol_p_p.h.
bool QWidgetTextControlPrivate::wordSelectionEnabled |
Definition at line 204 of file qwidgettextcontrol_p_p.h.
Referenced by QWidgetTextControlPrivate(), and extendWordwiseSelection().