Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQuickTextControlPrivate Class Reference

#include <qquicktextcontrol_p_p.h>

Inheritance diagram for QQuickTextControlPrivate:
Collaboration diagram for QQuickTextControlPrivate:

Public Member Functions

 QQuickTextControlPrivate ()
bool cursorMoveKeyEvent (QKeyEvent *e)
void updateCurrentCharFormat ()
void setContent (Qt::TextFormat format, const QString &text)
void paste (const QMimeData *source)
void setCursorPosition (const QPointF &pos)
void setCursorPosition (int pos, QTextCursor::MoveMode mode=QTextCursor::MoveAnchor)
void repaintCursor ()
void repaintSelection ()
void repaintOldAndNewSelection (const QTextCursor &oldSelection)
void selectionChanged (bool forceEmitSelectionChanged=false)
void _q_updateCurrentCharFormatAndSelection ()
void _q_updateCursorPosChanged (const QTextCursor &someCursor)
void setBlinkingCursorEnabled (bool enable)
void updateCursorFlashTime ()
void extendWordwiseSelection (int suggestedNewPosition, qreal mouseXPosition)
void extendBlockwiseSelection (int suggestedNewPosition)
void _q_setCursorAfterUndoRedo (int undoPosition, int charsAdded, int charsRemoved)
QRectF rectForPosition (int position) const
void keyPressEvent (QKeyEvent *e)
void keyReleaseEvent (QKeyEvent *e)
void mousePressEvent (QMouseEvent *event, const QPointF &pos)
void mouseMoveEvent (QMouseEvent *event, const QPointF &pos)
void mouseReleaseEvent (QMouseEvent *event, const QPointF &pos)
void mouseDoubleClickEvent (QMouseEvent *event, const QPointF &pos)
bool sendMouseEventToInputContext (QMouseEvent *event, const QPointF &pos)
void focusEvent (QFocusEvent *e)
void hoverEvent (QHoverEvent *e, const QPointF &pos)
void activateLinkUnderCursor (QString href=QString())
void _q_copyLink ()
Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
void setObjectNameWithoutBindings (const QString &name)
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
virtual ~QObjectPrivate ()
void deleteChildren ()
void clearBindingStorage ()
void setParent_helper (QObject *)
void moveToThread_helper ()
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
QObjectList receiverList (const char *signal) const
void ensureConnectionData ()
void addConnection (int signal, Connection *c)
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
bool maybeSignalConnected (uint signalIndex) const
bool isDeclarativeSignalConnected (uint signalIdx) const
void connectNotify (const QMetaMethod &signal)
void disconnectNotify (const QMetaMethod &signal)
void reinitBindingStorageAfterThreadMove ()
virtual std::string flagsForDumping () const
virtual void writeToDebugStream (QDebug &) const
QtPrivate::QPropertyAdaptorSlotObject * getPropertyAdaptorSlotObject (const QMetaProperty &property)
Public Member Functions inherited from QObjectData
 QObjectData ()=default
virtual ~QObjectData ()=0
const QMetaObject * dynamicMetaObject () const

Public Attributes

QPointF tripleClickPoint
QPointF mousePressPos
QTextCharFormat lastCharFormat
QTextDocument * doc
QTextCursor cursor
QTextCursor selectedWordOnDoubleClick
QTextCursor selectedBlockOnTripleClick
QString anchorOnMousePress
QString linkToCopy
QString hoveredLink
QString hoveredToolTip
QTextBlock blockWithMarkerUnderMousePress
QBasicTimer cursorBlinkTimer
ulong timestampAtLastDoubleClick = 0
Qt::TextInteractionFlags interactionFlags
bool cursorOn: 1
bool cursorIsFocusIndicator: 1
bool mousePressed: 1
bool lastSelectionState: 1
bool ignoreAutomaticScrollbarAdjustement: 1
bool overwriteMode: 1
bool acceptRichText: 1
bool cursorVisible: 1
bool cursorBlinkingEnabled: 1
bool hasFocus: 1
bool hadSelectionOnMousePress: 1
bool wordSelectionEnabled: 1
bool hasImState: 1
bool cursorRectangleChanged: 1
bool hoveredMarker: 1
bool selectByTouchDrag: 1
bool imSelectionAfterPress: 1
bool beingEdited
int lastSelectionStart
int lastSelectionEnd
Public Attributes inherited from QObjectPrivate
ExtraData * extraData
QAtomicPointer< QThreadData > threadData
QAtomicPointer< ConnectionData > connections
union { 
   QObject *   currentChildBeingDeleted 
   QAbstractDeclarativeData *   declarativeData 
}; 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
Public Attributes inherited from QObjectData
QObject * q_ptr
QObject * parent
QObjectList children
uint isWidget: 1
uint blockSig: 1
uint wasDeleted: 1
uint isDeletingChildren: 1
uint sendChildEvents: 1
uint receiveChildEvents: 1
uint isWindow: 1
uint deleteLaterCalled: 1
uint isQuickItem: 1
uint willBeWidget: 1
uint wasWidget: 1
uint receiveParentEvents: 1
uint unused: 20
QAtomicInt postedEvents
QDynamicMetaObjectData * metaObject
QBindingStorage bindingStorage

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)
static void deleteInOwnThread (QObject *object)
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)

Detailed Description

Definition at line 33 of file qquicktextcontrol_p_p.h.

Constructor & Destructor Documentation

◆ QQuickTextControlPrivate()

Member Function Documentation

◆ _q_copyLink()

void QQuickTextControlPrivate::_q_copyLink ( )

◆ _q_setCursorAfterUndoRedo()

void QQuickTextControlPrivate::_q_setCursorAfterUndoRedo ( int undoPosition,
int charsAdded,
int charsRemoved )

◆ _q_updateCurrentCharFormatAndSelection()

void QQuickTextControlPrivate::_q_updateCurrentCharFormatAndSelection ( )

Definition at line 412 of file qquicktextcontrol.cpp.

References selectionChanged(), and updateCurrentCharFormat().

Referenced by mouseMoveEvent(), mousePressEvent(), and setContent().

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

◆ _q_updateCursorPosChanged()

void QQuickTextControlPrivate::_q_updateCursorPosChanged ( const QTextCursor & someCursor)

Definition at line 430 of file qquicktextcontrol.cpp.

◆ activateLinkUnderCursor()

void QQuickTextControlPrivate::activateLinkUnderCursor ( QString href = QString())

Definition at line 1749 of file qquicktextcontrol.cpp.

References cursorIsFocusIndicator, and hasFocus.

◆ cursorMoveKeyEvent()

bool QQuickTextControlPrivate::cursorMoveKeyEvent ( QKeyEvent * e)

Definition at line 90 of file qquicktextcontrol.cpp.

◆ extendBlockwiseSelection()

void QQuickTextControlPrivate::extendBlockwiseSelection ( int suggestedNewPosition)

Definition at line 526 of file qquicktextcontrol.cpp.

References selectionChanged().

Referenced by mouseMoveEvent(), and mousePressEvent().

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

◆ extendWordwiseSelection()

void QQuickTextControlPrivate::extendWordwiseSelection ( int suggestedNewPosition,
qreal mouseXPosition )

Definition at line 469 of file qquicktextcontrol.cpp.

References selectionChanged(), and wordSelectionEnabled.

Here is the call graph for this function:

◆ focusEvent()

void QQuickTextControlPrivate::focusEvent ( QFocusEvent * e)

Definition at line 1501 of file qquicktextcontrol.cpp.

◆ hoverEvent()

void QQuickTextControlPrivate::hoverEvent ( QHoverEvent * e,
const QPointF & pos )

Definition at line 1524 of file qquicktextcontrol.cpp.

◆ keyPressEvent()

void QQuickTextControlPrivate::keyPressEvent ( QKeyEvent * e)

Definition at line 813 of file qquicktextcontrol.cpp.

◆ keyReleaseEvent()

void QQuickTextControlPrivate::keyReleaseEvent ( QKeyEvent * e)

Definition at line 808 of file qquicktextcontrol.cpp.

◆ mouseDoubleClickEvent()

void QQuickTextControlPrivate::mouseDoubleClickEvent ( QMouseEvent * event,
const QPointF & pos )

Definition at line 1251 of file qquicktextcontrol.cpp.

References cursorIsFocusIndicator, and selectionChanged().

Here is the call graph for this function:

◆ mouseMoveEvent()

void QQuickTextControlPrivate::mouseMoveEvent ( QMouseEvent * event,
const QPointF & pos )

Definition at line 1105 of file qquicktextcontrol.cpp.

References _q_updateCurrentCharFormatAndSelection(), extendBlockwiseSelection(), mousePressed, and selectionChanged().

Here is the call graph for this function:

◆ mousePressEvent()

void QQuickTextControlPrivate::mousePressEvent ( QMouseEvent * event,
const QPointF & pos )

Definition at line 1014 of file qquicktextcontrol.cpp.

References _q_updateCurrentCharFormatAndSelection(), cursorIsFocusIndicator, extendBlockwiseSelection(), imSelectionAfterPress, repaintSelection(), and selectionChanged().

Here is the call graph for this function:

◆ mouseReleaseEvent()

void QQuickTextControlPrivate::mouseReleaseEvent ( QMouseEvent * event,
const QPointF & pos )

Definition at line 1181 of file qquicktextcontrol.cpp.

References mousePressed.

◆ paste()

void QQuickTextControlPrivate::paste ( const QMimeData * source)

◆ rectForPosition()

QRectF QQuickTextControlPrivate::rectForPosition ( int position) const

Definition at line 975 of file qquicktextcontrol.cpp.

References overwriteMode.

◆ repaintCursor()

void QQuickTextControlPrivate::repaintCursor ( )

Definition at line 343 of file qquicktextcontrol.cpp.

Referenced by updateCursorFlashTime().

Here is the caller graph for this function:

◆ repaintOldAndNewSelection()

void QQuickTextControlPrivate::repaintOldAndNewSelection ( const QTextCursor & oldSelection)

Definition at line 349 of file qquicktextcontrol.cpp.

◆ repaintSelection()

void QQuickTextControlPrivate::repaintSelection ( )
inline

Definition at line 51 of file qquicktextcontrol_p_p.h.

Referenced by mousePressEvent().

Here is the caller graph for this function:

◆ selectionChanged()

void QQuickTextControlPrivate::selectionChanged ( bool forceEmitSelectionChanged = false)

Definition at line 377 of file qquicktextcontrol.cpp.

References lastSelectionEnd, lastSelectionStart, and lastSelectionState.

Referenced by _q_updateCurrentCharFormatAndSelection(), extendBlockwiseSelection(), extendWordwiseSelection(), mouseDoubleClickEvent(), mouseMoveEvent(), and mousePressEvent().

Here is the caller graph for this function:

◆ sendMouseEventToInputContext()

bool QQuickTextControlPrivate::sendMouseEventToInputContext ( QMouseEvent * event,
const QPointF & pos )

Definition at line 1289 of file qquicktextcontrol.cpp.

◆ setBlinkingCursorEnabled()

void QQuickTextControlPrivate::setBlinkingCursorEnabled ( bool enable)

Definition at line 439 of file qquicktextcontrol.cpp.

References cursorBlinkingEnabled, and updateCursorFlashTime().

Here is the call graph for this function:

◆ setContent()

void QQuickTextControlPrivate::setContent ( Qt::TextFormat format,
const QString & text )

Definition at line 255 of file qquicktextcontrol.cpp.

References _q_updateCurrentCharFormatAndSelection(), and doc.

Here is the call graph for this function:

◆ setCursorPosition() [1/2]

void QQuickTextControlPrivate::setCursorPosition ( const QPointF & pos)

Definition at line 324 of file qquicktextcontrol.cpp.

◆ setCursorPosition() [2/2]

void QQuickTextControlPrivate::setCursorPosition ( int pos,
QTextCursor::MoveMode mode = QTextCursor::MoveAnchor )

Definition at line 333 of file qquicktextcontrol.cpp.

◆ updateCurrentCharFormat()

void QQuickTextControlPrivate::updateCurrentCharFormat ( )

Definition at line 242 of file qquicktextcontrol.cpp.

References cursorRectangleChanged.

Referenced by _q_updateCurrentCharFormatAndSelection().

Here is the caller graph for this function:

◆ updateCursorFlashTime()

void QQuickTextControlPrivate::updateCursorFlashTime ( )

Definition at line 453 of file qquicktextcontrol.cpp.

References cursorOn, and repaintCursor().

Referenced by setBlinkingCursorEnabled().

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

Member Data Documentation

◆ acceptRichText

bool QQuickTextControlPrivate::acceptRichText

Definition at line 126 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate().

◆ anchorOnMousePress

QString QQuickTextControlPrivate::anchorOnMousePress

Definition at line 105 of file qquicktextcontrol_p_p.h.

◆ beingEdited

bool QQuickTextControlPrivate::beingEdited

Definition at line 137 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate().

◆ blockWithMarkerUnderMousePress

QTextBlock QQuickTextControlPrivate::blockWithMarkerUnderMousePress

Definition at line 109 of file qquicktextcontrol_p_p.h.

◆ cursor

QTextCursor QQuickTextControlPrivate::cursor

Definition at line 102 of file qquicktextcontrol_p_p.h.

◆ cursorBlinkingEnabled

bool QQuickTextControlPrivate::cursorBlinkingEnabled

Definition at line 128 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate(), and setBlinkingCursorEnabled().

◆ cursorBlinkTimer

QBasicTimer QQuickTextControlPrivate::cursorBlinkTimer

Definition at line 111 of file qquicktextcontrol_p_p.h.

◆ cursorIsFocusIndicator

bool QQuickTextControlPrivate::cursorIsFocusIndicator

◆ cursorOn

bool QQuickTextControlPrivate::cursorOn

Definition at line 120 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate(), and updateCursorFlashTime().

◆ cursorRectangleChanged

bool QQuickTextControlPrivate::cursorRectangleChanged

Definition at line 133 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate(), and updateCurrentCharFormat().

◆ cursorVisible

bool QQuickTextControlPrivate::cursorVisible

Definition at line 127 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate().

◆ doc

QTextDocument* QQuickTextControlPrivate::doc

Definition at line 101 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate(), and setContent().

◆ hadSelectionOnMousePress

bool QQuickTextControlPrivate::hadSelectionOnMousePress

Definition at line 130 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate().

◆ hasFocus

bool QQuickTextControlPrivate::hasFocus

Definition at line 129 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate(), and activateLinkUnderCursor().

◆ hasImState

bool QQuickTextControlPrivate::hasImState

Definition at line 132 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate().

◆ hoveredLink

QString QQuickTextControlPrivate::hoveredLink

Definition at line 107 of file qquicktextcontrol_p_p.h.

◆ hoveredMarker

bool QQuickTextControlPrivate::hoveredMarker

Definition at line 134 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate().

◆ hoveredToolTip

QString QQuickTextControlPrivate::hoveredToolTip

Definition at line 108 of file qquicktextcontrol_p_p.h.

◆ ignoreAutomaticScrollbarAdjustement

bool QQuickTextControlPrivate::ignoreAutomaticScrollbarAdjustement

Definition at line 124 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate().

◆ imSelectionAfterPress

bool QQuickTextControlPrivate::imSelectionAfterPress

Definition at line 136 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate(), and mousePressEvent().

◆ interactionFlags

Qt::TextInteractionFlags QQuickTextControlPrivate::interactionFlags

Definition at line 118 of file qquicktextcontrol_p_p.h.

◆ lastCharFormat

QTextCharFormat QQuickTextControlPrivate::lastCharFormat

Definition at line 99 of file qquicktextcontrol_p_p.h.

◆ lastSelectionEnd

int QQuickTextControlPrivate::lastSelectionEnd

Definition at line 140 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate(), and selectionChanged().

◆ lastSelectionStart

int QQuickTextControlPrivate::lastSelectionStart

Definition at line 139 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate(), and selectionChanged().

◆ lastSelectionState

bool QQuickTextControlPrivate::lastSelectionState

Definition at line 123 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate(), and selectionChanged().

◆ linkToCopy

QString QQuickTextControlPrivate::linkToCopy

Definition at line 106 of file qquicktextcontrol_p_p.h.

◆ mousePressed

bool QQuickTextControlPrivate::mousePressed

◆ mousePressPos

QPointF QQuickTextControlPrivate::mousePressPos

Definition at line 97 of file qquicktextcontrol_p_p.h.

◆ overwriteMode

bool QQuickTextControlPrivate::overwriteMode

Definition at line 125 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate(), and rectForPosition().

◆ selectByTouchDrag

bool QQuickTextControlPrivate::selectByTouchDrag

Definition at line 135 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate().

◆ selectedBlockOnTripleClick

QTextCursor QQuickTextControlPrivate::selectedBlockOnTripleClick

Definition at line 104 of file qquicktextcontrol_p_p.h.

◆ selectedWordOnDoubleClick

QTextCursor QQuickTextControlPrivate::selectedWordOnDoubleClick

Definition at line 103 of file qquicktextcontrol_p_p.h.

◆ timestampAtLastDoubleClick

ulong QQuickTextControlPrivate::timestampAtLastDoubleClick = 0

Definition at line 112 of file qquicktextcontrol_p_p.h.

◆ tripleClickPoint

QPointF QQuickTextControlPrivate::tripleClickPoint

Definition at line 96 of file qquicktextcontrol_p_p.h.

◆ wordSelectionEnabled

bool QQuickTextControlPrivate::wordSelectionEnabled

Definition at line 131 of file qquicktextcontrol_p_p.h.

Referenced by QQuickTextControlPrivate(), and extendWordwiseSelection().


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