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>.
Loading...
Searching...
No Matches
QQuickTextInputPrivate Class Reference

#include <qquicktextinput_p_p.h>

+ Inheritance diagram for QQuickTextInputPrivate:
+ Collaboration diagram for QQuickTextInputPrivate:

Classes

struct  Command
 
struct  ExtraData
 
struct  MaskInputData
 

Public Types

enum  CommandType {
  Separator , Insert , Remove , Delete ,
  RemoveSelection , DeleteSelection , SetSelection
}
 
enum  DrawFlags { DrawText = 0x01 , DrawSelections = 0x02 , DrawCursor = 0x04 , DrawAll = DrawText | DrawSelections | DrawCursor }
 
enum  UpdateType { UpdateNone , UpdateOnlyPreprocess , UpdatePaintNode }
 
typedef QQuickTextInput Public
 
- Public Types inherited from QQuickItemPrivate
enum  ChangeType {
  Geometry = 0x01 , SiblingOrder = 0x02 , Visibility = 0x04 , Opacity = 0x08 ,
  Destroyed = 0x10 , Parent = 0x20 , Children = 0x40 , Rotation = 0x80 ,
  ImplicitWidth = 0x100 , ImplicitHeight = 0x200 , Enabled = 0x400 , Focus = 0x800 ,
  AllChanges = 0xFFFFFFFF
}
 
enum  ExtraDataTag { NoTag = 0x1 , LeftMouseButtonAccepted = 0x2 }
 
enum  DirtyType {
  TransformOrigin = 0x00000001 , Transform = 0x00000002 , BasicTransform = 0x00000004 , Position = 0x00000008 ,
  Size = 0x00000010 , ZValue = 0x00000020 , Content = 0x00000040 , Smooth = 0x00000080 ,
  OpacityValue = 0x00000100 , ChildrenChanged = 0x00000200 , ChildrenStackingChanged = 0x00000400 , ParentChanged = 0x00000800 ,
  Clip = 0x00001000 , Window = 0x00002000 , EffectReference = 0x00008000 , Visible = 0x00010000 ,
  HideReference = 0x00020000 , Antialiasing = 0x00040000 , TransformUpdateMask , ComplexTransformUpdateMask = Transform | Window ,
  ContentUpdateMask = Size | Content | Smooth | Window | Antialiasing , ChildrenUpdateMask = ChildrenChanged | ChildrenStackingChanged | EffectReference | Window
}
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 

Public Member Functions

 QQuickTextInputPrivate ()
 
 ~QQuickTextInputPrivate ()
 
void init ()
 
void cancelInput ()
 
void startCreatingCursor ()
 
void ensureVisible (int position, int preeditCursor=0, int preeditLength=0)
 
void updateHorizontalScroll ()
 
void updateVerticalScroll ()
 
bool determineHorizontalAlignment ()
 
bool setHAlign (QQuickTextInput::HAlignment, bool forceAlign=false)
 
void mirrorChange () override
 
bool sendMouseEventToInputContext (QMouseEvent *event)
 
void handleFocusEvent (QFocusEvent *event)
 
bool hasPendingTripleClick () const
 
void setNativeCursorEnabled (bool)
 
int nextMaskBlank (int pos)
 
int prevMaskBlank (int pos)
 
bool isUndoAvailable () const
 
bool isRedoAvailable () const
 
void clearUndo ()
 
bool allSelected () const
 
bool hasSelectedText () const
 
void setSelection (int start, int length)
 
QString selectedText () const
 
QString textBeforeSelection () const
 
QString textAfterSelection () const
 
int selectionStart () const
 
int selectionEnd () const
 
QRectF anchorRectangle () const
 
int positionAt (qreal x, qreal y, QTextLine::CursorPosition position) const
 
int positionAt (const QPointF &point, QTextLine::CursorPosition position=QTextLine::CursorBetweenCharacters) const
 
void removeSelection ()
 
int start () const
 
int end () const
 
QString realText () const
 
Qt::CursorMoveStyle cursorMoveStyle () const
 
void setCursorMoveStyle (Qt::CursorMoveStyle style)
 
void moveCursor (int pos, bool mark=false)
 
void cursorForward (bool mark, int steps)
 
void cursorWordForward (bool mark)
 
void cursorWordBackward (bool mark)
 
void home (bool mark)
 
void end (bool mark)
 
void backspace ()
 
void del ()
 
void deselect ()
 
void selectAll ()
 
void insert (const QString &)
 
void clear ()
 
void selectWordAtPos (int)
 
void setCursorPosition (int pos)
 
bool fixup ()
 
QString inputMask () const
 
void setInputMask (const QString &mask)
 
void updatePasswordEchoEditing (bool editing)
 
void cancelPasswordEchoTimer ()
 
Qt::LayoutDirection textDirection () const
 
Qt::LayoutDirection layoutDirection () const
 
void setLayoutDirection (Qt::LayoutDirection direction)
 
void processKeyEvent (QKeyEvent *ev)
 
void setBlinkingCursorEnabled (bool enable)
 
void updateCursorBlinking ()
 
void updateLayout ()
 
void updateBaselineOffset ()
 QQuickTextInputPrivate::updateBaselineOffset.
 
qreal calculateImplicitWidthForText (const QString &text) const
 
qreal getImplicitWidth () const override
 
qreal padding () const
 
void setTopPadding (qreal value, bool reset=false)
 
void setLeftPadding (qreal value, bool reset=false)
 
void setRightPadding (qreal value, bool reset=false)
 
void setBottomPadding (qreal value, bool reset=false)
 
bool isImplicitResizeEnabled () const
 
void setImplicitResizeEnabled (bool enabled)
 
- Public Member Functions inherited from QQuickImplicitSizeItemPrivate
 QQuickImplicitSizeItemPrivate ()
 
- Public Member Functions inherited from QQuickItemPrivate
 QQuickItemPrivate ()
 
 ~QQuickItemPrivate () override
 
void init (QQuickItem *parent)
 
QQmlListProperty< QObjectdata ()
 
QQmlListProperty< QObjectresources ()
 
QQmlListProperty< QQuickItemchildren ()
 
QQmlListProperty< QQuickItemvisibleChildren ()
 
QQmlListProperty< QQuickStatestates ()
 
QQmlListProperty< QQuickTransitiontransitions ()
 
QString state () const
 
void setState (const QString &)
 
QQuickAnchorLine left () const
 
QQuickAnchorLine right () const
 
QQuickAnchorLine horizontalCenter () const
 
QQuickAnchorLine top () const
 
QQuickAnchorLine bottom () const
 
QQuickAnchorLine verticalCenter () const
 
QQuickAnchorLine baseline () const
 
void localizedTouchEvent (const QTouchEvent *event, bool isFiltering, QMutableTouchEvent *localized)
 
bool hasPointerHandlers () const
 
bool hasEnabledHoverHandlers () const
 
virtual void addPointerHandler (QQuickPointerHandler *h)
 
virtual void removePointerHandler (QQuickPointerHandler *h)
 
void _q_resourceObjectDeleted (QObject *)
 
quint64 _q_createJSWrapper (QQmlV4ExecutionEnginePtr engine)
 
template<typename Fn , typename ... Args>
void notifyChangeListeners (QQuickItemPrivate::ChangeTypes changeTypes, Fn &&function, Args &&...args)
 
virtual void registerAsContainmentMask (QQuickItem *, bool)
 
QQuickAnchorsanchors () const
 \qmlpropertygroup QtQuick::Item::anchors \qmlproperty AnchorLine QtQuick::Item::anchors.top \qmlproperty AnchorLine QtQuick::Item::anchors.bottom \qmlproperty AnchorLine QtQuick::Item::anchors.left \qmlproperty AnchorLine QtQuick::Item::anchors.right \qmlproperty AnchorLine QtQuick::Item::anchors.horizontalCenter \qmlproperty AnchorLine QtQuick::Item::anchors.verticalCenter \qmlproperty AnchorLine QtQuick::Item::anchors.baseline
 
Qt::MouseButtons acceptedMouseButtons () const
 
void addItemChangeListener (QQuickItemChangeListener *listener, ChangeTypes types)
 
void updateOrAddItemChangeListener (QQuickItemChangeListener *listener, ChangeTypes types)
 
void removeItemChangeListener (QQuickItemChangeListener *, ChangeTypes types)
 
void updateOrAddGeometryChangeListener (QQuickItemChangeListener *listener, QQuickGeometryChange types)
 
void updateOrRemoveGeometryChangeListener (QQuickItemChangeListener *listener, QQuickGeometryChange types)
 
QQuickStateGroup_states ()
 
QQuickItem::TransformOrigin origin () const
 
QString dirtyToString () const
 
void dirty (DirtyType)
 
void addToDirtyList ()
 
void removeFromDirtyList ()
 
void setCulled (bool)
 
QSGContextsceneGraphContext () const
 
QSGRenderContextsceneGraphRenderContext () const
 
QList< QQuickItem * > paintOrderChildItems () const
 
void addChild (QQuickItem *)
 
void removeChild (QQuickItem *)
 
void siblingOrderChanged ()
 
void markSortedChildrenDirty (QQuickItem *child)
 
void refWindow (QQuickWindow *)
 
void derefWindow ()
 
void updateSubFocusItem (QQuickItem *scope, bool focus)
 Clears all sub focus items from scope.
 
bool setFocusIfNeeded (QEvent::Type)
 
Qt::FocusReason lastFocusChangeReason () const
 
void setLastFocusChangeReason (Qt::FocusReason reason)
 
QTransform windowToItemTransform () const
 Returns a transform that maps points from window space into item space.
 
QTransform itemToWindowTransform () const
 Returns a transform that maps points from item space into window space.
 
void itemToParentTransform (QTransform *) const
 Modifies t with this item's local transform relative to its parent.
 
QTransform globalToWindowTransform () const
 Returns a transform that maps points from global space into window space.
 
QTransform windowToGlobalTransform () const
 Returns a transform that maps points from window space into global space.
 
void setX (qreal x)
 
void xChanged ()
 
 Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, x, &QQuickItemPrivate::setX, &QQuickItemPrivate::xChanged)
 
void setY (qreal y)
 
void yChanged ()
 
 Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, y, &QQuickItemPrivate::setY, &QQuickItemPrivate::yChanged)
 
void setWidth (qreal width)
 
void widthChanged ()
 
 Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, width, &QQuickItemPrivate::setWidth, &QQuickItemPrivate::widthChanged)
 
void setHeight (qreal height)
 
void heightChanged ()
 
 Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, height, &QQuickItemPrivate::setHeight, &QQuickItemPrivate::heightChanged)
 
bool widthValid () const
 
bool heightValid () const
 
qreal z () const
 
qreal scale () const
 
qreal rotation () const
 
qreal opacity () const
 
void setAccessible ()
 
virtual qreal getImplicitHeight () const
 
virtual void implicitWidthChanged ()
 
virtual void implicitHeightChanged ()
 
void setImplicitAntialiasing (bool antialiasing)
 
void resolveLayoutMirror ()
 
void setImplicitLayoutMirror (bool mirror, bool inherit)
 
void setLayoutMirror (bool mirror)
 
bool isMirrored () const
 
void emitChildrenRectChanged (const QRectF &rect)
 
QPointF computeTransformOrigin () const
 
virtual bool transformChanged (QQuickItem *transformedItem)
 
QPointF adjustedPosForTransform (const QPointF &centroid, const QPointF &startPos, const QVector2D &activeTranslatation, qreal startScale, qreal activeScale, qreal startRotation, qreal activeRotation)
 
QQuickDeliveryAgentdeliveryAgent ()
 
QQuickDeliveryAgentPrivatedeliveryAgentPrivate ()
 
QQuickDeliveryAgentensureSubsceneDeliveryAgent ()
 
void deliverKeyEvent (QKeyEvent *)
 
bool filterKeyEvent (QKeyEvent *, bool post)
 
void deliverShortcutOverrideEvent (QKeyEvent *)
 
void deliverPointerEvent (QEvent *)
 
bool anyPointerHandlerWants (const QPointerEvent *event, const QEventPoint &point) const
 
virtual bool handlePointerEvent (QPointerEvent *, bool avoidGrabbers=false)
 
virtual void setVisible (bool visible)
 
bool isTransparentForPositioner () const
 
void setTransparentForPositioner (bool trans)
 
bool calcEffectiveVisible () const
 
bool setEffectiveVisibleRecur (bool)
 
bool calcEffectiveEnable () const
 
void setEffectiveEnableRecur (QQuickItem *scope, bool)
 
QSGTransformNodeitemNode ()
 
QSGNodechildContainerNode ()
 
QSGOpacityNodeopacityNode () const
 
QQuickDefaultClipNodeclipNode () const
 
QSGRootNoderootNode () const
 
virtual QSGTransformNodecreateTransformNode ()
 
void refFromEffectItem (bool hide)
 
void recursiveRefFromEffectItem (int refs)
 
void derefFromEffectItem (bool unhide)
 
void itemChange (QQuickItem::ItemChange, const QQuickItem::ItemChangeData &)
 
void enableSubtreeChangeNotificationsForParentHierachy ()
 
void setHasCursorInChild (bool hasCursor)
 
void setHasHoverInChild (bool hasHover)
 
virtual void updatePolish ()
 
virtual void dumpItemTree (int indent) const
 
QLayoutPolicy sizePolicy () const
 
void setSizePolicy (const QLayoutPolicy::Policy &horizontalPolicy, const QLayoutPolicy::Policy &verticalPolicy)
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
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::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 
- Public Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate >
virtual ~QQuickPaletteProviderPrivateBase ()=default
 
virtual QQuickPalettepalette () const
 
virtual void setPalette (QQuickPalette *p)
 
virtual void resetPalette ()
 
virtual bool providesPalette () const
 
QPalette defaultPalette () const override
 
QPalette parentPalette (const QPalette &fallbackPalette) const override
 
void inheritPalette (const QPalette &parentPalette)
 
virtual void updateChildrenPalettes (const QPalette &parentPalette)
 
- Public Member Functions inherited from QQuickAbstractPaletteProvider
virtual ~QQuickAbstractPaletteProvider ()=default
 

Static Public Member Functions

static QQuickTextInputPrivateget (QQuickTextInput *t)
 
- Static Public Member Functions inherited from QQuickItemPrivate
static QQuickItemPrivateget (QQuickItem *item)
 
static const QQuickItemPrivateget (const QQuickItem *item)
 
static void data_append (QQmlListProperty< QObject > *, QObject *)
 
static qsizetype data_count (QQmlListProperty< QObject > *)
 \qmlproperty list<QtObject> QtQuick::Item::data \qmldefault
 
static QObjectdata_at (QQmlListProperty< QObject > *, qsizetype)
 
static void data_clear (QQmlListProperty< QObject > *)
 
static void data_removeLast (QQmlListProperty< QObject > *)
 
static QObjectresources_at (QQmlListProperty< QObject > *, qsizetype)
 
static void resources_append (QQmlListProperty< QObject > *, QObject *)
 
static qsizetype resources_count (QQmlListProperty< QObject > *)
 
static void resources_clear (QQmlListProperty< QObject > *)
 
static void resources_removeLast (QQmlListProperty< QObject > *)
 
static void children_append (QQmlListProperty< QQuickItem > *, QQuickItem *)
 
static qsizetype children_count (QQmlListProperty< QQuickItem > *)
 
static QQuickItemchildren_at (QQmlListProperty< QQuickItem > *, qsizetype)
 
static void children_clear (QQmlListProperty< QQuickItem > *)
 
static void children_removeLast (QQmlListProperty< QQuickItem > *)
 
static qsizetype visibleChildren_count (QQmlListProperty< QQuickItem > *prop)
 
static QQuickItemvisibleChildren_at (QQmlListProperty< QQuickItem > *prop, qsizetype index)
 
static qsizetype transform_count (QQmlListProperty< QQuickTransform > *list)
 
static void transform_append (QQmlListProperty< QQuickTransform > *list, QQuickTransform *)
 
static QQuickTransformtransform_at (QQmlListProperty< QQuickTransform > *list, qsizetype)
 
static void transform_clear (QQmlListProperty< QQuickTransform > *list)
 
static bool focusNextPrev (QQuickItem *item, bool forward)
 QQuickItemPrivate::focusNextPrev focuses the next/prev item in the tab-focus-chain.
 
static QQuickItemnextTabChildItem (const QQuickItem *item, int start)
 
static QQuickItemprevTabChildItem (const QQuickItem *item, int start)
 
static QQuickItemnextPrevItemInTabFocusChain (QQuickItem *item, bool forward, bool wrap=true)
 
static bool canAcceptTabFocus (QQuickItem *item)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (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)
 

Public Attributes

QLazilyAllocated< ExtraDataextra
 
QElapsedTimer tripleClickTimer
 
QSizeF contentSize
 
QPointF pressPos
 
QPointF tripleClickStartPoint
 
QPointer< QQmlComponentcursorComponent
 
qreal hscroll
 
qreal vscroll
 
QTextLayout m_textLayout
 
QString m_text
 
QString m_inputMask
 
QString m_cancelText
 
QFont font
 
QFont sourceFont
 
QQuickItemcursorItem
 
QSGInternalTextNodetextNode
 
std::unique_ptr< MaskInputData[]> m_maskData
 
QInputControlm_inputControl
 
QList< int > m_transactions
 
QVector< Commandm_history
 
QColor color
 
QColor selectionColor
 
QColor selectedTextColor
 
QBasicTimer m_passwordEchoTimer
 
int lastSelectionStart
 
int lastSelectionEnd
 
int m_cursor
 
bool m_blinkEnabled
 
int m_blinkTimer
 
int m_maxLength
 
int m_lastCursorPos
 
int m_undoState
 
int m_selstart
 
int m_selend
 
QQuickTextInput::HAlignment hAlign
 
QQuickTextInput::VAlignment vAlign
 
QQuickTextInput::WrapMode wrapMode
 
QQuickTextInput::EchoMode m_echoMode
 
QQuickTextInput::RenderType renderType
 
UpdateType updateType
 
QQuickTextInput::SelectionMode mouseSelectionMode
 
Qt::LayoutDirection m_layoutDirection
 
QChar m_blank
 
QChar m_passwordCharacter
 
int m_passwordMaskDelay
 
bool focusOnPress:1
 
bool cursorVisible:1
 
bool cursorPending:1
 
bool autoScroll:1
 
bool selectByMouse:1
 
bool canPaste:1
 
bool canPasteValid:1
 
bool canUndo:1
 
bool canRedo:1
 
bool hAlignImplicit:1
 
bool selectPressed:1
 
bool textLayoutDirty:1
 
bool persistentSelection:1
 
bool hasImState: 1
 
bool m_separator: 1
 
bool m_readOnly: 1
 
bool m_textDirty: 1
 
bool m_selDirty: 1
 
bool m_validInput: 1
 
bool m_acceptableInput: 1
 
bool m_blinkStatus: 1
 
bool m_passwordEchoEditing: 1
 
bool inLayout:1
 
bool requireImplicitWidth:1
 
bool overwriteMode:1
 
- Public Attributes inherited from QQuickItemPrivate
QLazilyAllocated< ExtraData, ExtraDataTags > extra
 
QQuickAnchors_anchors
 
QVector< QQuickItemPrivate::ChangeListenerchangeListeners
 
QQuickStateGroup_stateGroup
 
quint32 flags:7
 
quint32 widthValidFlag:1
 
quint32 heightValidFlag:1
 
quint32 componentComplete:1
 
quint32 keepMouse:1
 
quint32 keepTouch:1
 
quint32 hoverEnabled:1
 
quint32 smooth:1
 
quint32 antialiasing:1
 
quint32 focus:1
 
quint32 activeFocus:1
 
quint32 notifiedFocus:1
 
quint32 notifiedActiveFocus:1
 
quint32 filtersChildMouseEvents:1
 
quint32 explicitVisible:1
 
quint32 effectiveVisible:1
 
quint32 explicitEnable:1
 
quint32 effectiveEnable:1
 
quint32 polishScheduled:1
 
quint32 inheritedLayoutMirror:1
 
quint32 effectiveLayoutMirror:1
 
quint32 isMirrorImplicit:1
 
quint32 inheritMirrorFromParent:1
 
quint32 inheritMirrorFromItem:1
 
quint32 isAccessible:1
 
quint32 culled:1
 
quint32 hasCursor:1
 
quint32 subtreeCursorEnabled:1
 
quint32 subtreeHoverEnabled:1
 
quint32 activeFocusOnTab:1
 
quint32 implicitAntialiasing:1
 
quint32 antialiasingValid:1
 
quint32 isTabFence:1
 
quint32 replayingPressEvent:1
 
quint32 touchEnabled:1
 
quint32 hasCursorHandler:1
 
quint32 maybeHasSubsceneDeliveryAgent:1
 
quint32 subtreeTransformChangedEnabled:1
 
quint32 inDestructor:1
 
quint32 focusReason:4
 
quint32 focusPolicy:4
 
quint32 dirtyAttributes
 
QQuickItemnextDirtyItem
 
QQuickItem ** prevDirtyItem
 
QQuickWindowwindow
 
int windowRefCount
 
QQuickItemparentItem
 
QList< QQuickItem * > childItems
 
QList< QQuickItem * > * sortedChildItems
 
QPointer< QQuickItemsubFocusItem
 
qreal implicitWidth
 
qreal implicitHeight
 
qreal baselineOffset
 
QList< QQuickTransform * > transforms
 
QSGTransformNodeitemNodeInstance
 
QSGNodepaintNode
 
QLayoutPolicy szPolicy
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
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
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Protected Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate >
void setCurrentColorGroup ()
 

Detailed Description

Definition at line 42 of file qquicktextinput_p_p.h.

Member Typedef Documentation

◆ Public

Member Enumeration Documentation

◆ CommandType

Enumerator
Separator 
Insert 
Remove 
Delete 
RemoveSelection 
DeleteSelection 
SetSelection 

Definition at line 165 of file qquicktextinput_p_p.h.

◆ DrawFlags

Enumerator
DrawText 
DrawSelections 
DrawCursor 
DrawAll 

Definition at line 174 of file qquicktextinput_p_p.h.

◆ UpdateType

Enumerator
UpdateNone 
UpdateOnlyPreprocess 
UpdatePaintNode 

Definition at line 229 of file qquicktextinput_p_p.h.

Constructor & Destructor Documentation

◆ QQuickTextInputPrivate()

QQuickTextInputPrivate::QQuickTextInputPrivate ( )
inline

Definition at line 65 of file qquicktextinput_p_p.h.

◆ ~QQuickTextInputPrivate()

QQuickTextInputPrivate::~QQuickTextInputPrivate ( )
inline

Definition at line 133 of file qquicktextinput_p_p.h.

References QString::fill(), and QQuickTextInput::Normal.

+ Here is the call graph for this function:

Member Function Documentation

◆ allSelected()

bool QQuickTextInputPrivate::allSelected ( ) const
inline

Definition at line 318 of file qquicktextinput_p_p.h.

References QString::isEmpty(), and QString::size().

+ Here is the call graph for this function:

◆ anchorRectangle()

QRectF QQuickTextInputPrivate::anchorRectangle ( ) const

Definition at line 1110 of file qquicktextinput.cpp.

References QTextLine::cursorToX(), QTextLine::height(), hscroll, QTextLine::isValid(), QTextLayout::lineForTextPosition(), m_cursor, m_echoMode, m_selend, m_selstart, m_textLayout, QQuickTextInput::NoEcho, rect, vscroll, and QTextLine::y().

+ Here is the call graph for this function:

◆ backspace()

void QQuickTextInputPrivate::backspace ( )

Handles the behavior for the backspace key or function. Removes the current selection if there is a selection, otherwise removes the character prior to the cursor position.

See also
del()

Definition at line 3327 of file qquicktextinput.cpp.

References QString::at(), m_cursor, m_maskData, m_text, m_undoState, and prevMaskBlank().

Referenced by processKeyEvent().

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

◆ calculateImplicitWidthForText()

qreal QQuickTextInputPrivate::calculateImplicitWidthForText ( const QString & text) const

Definition at line 3041 of file qquicktextinput.cpp.

References font, QTextOption::IncludeTrailingSpaces, layout, line, m_layoutDirection, m_textLayout, QTextLayout::preeditAreaPosition(), QTextLayout::preeditAreaText(), qCeil(), QTextOption::setTextDirection(), text, QTextLayout::textOption(), and wrapMode.

Referenced by getImplicitWidth().

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

◆ cancelInput()

void QQuickTextInputPrivate::cancelInput ( )

Definition at line 2879 of file qquicktextinput.cpp.

References m_readOnly, and qGuiApp.

◆ cancelPasswordEchoTimer()

void QQuickTextInputPrivate::cancelPasswordEchoTimer ( )
inline

Definition at line 414 of file qquicktextinput_p_p.h.

References QBasicTimer::stop().

Referenced by updatePasswordEchoEditing().

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

◆ clear()

void QQuickTextInputPrivate::clear ( )

Clears the line control text.

Definition at line 3394 of file qquicktextinput.cpp.

References m_selend, m_selstart, m_text, m_undoState, and QString::size().

Referenced by processKeyEvent().

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

◆ clearUndo()

void QQuickTextInputPrivate::clearUndo ( )
inline

Definition at line 310 of file qquicktextinput_p_p.h.

◆ cursorForward()

void QQuickTextInputPrivate::cursorForward ( bool mark,
int steps )
inline

Definition at line 363 of file qquicktextinput_p_p.h.

References QTextLayout::leftCursorPosition(), QTextLayout::nextCursorPosition(), QTextLayout::previousCursorPosition(), QTextLayout::rightCursorPosition(), and Qt::VisualMoveStyle.

Referenced by processKeyEvent().

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

◆ cursorMoveStyle()

Qt::CursorMoveStyle QQuickTextInputPrivate::cursorMoveStyle ( ) const
inline

Definition at line 359 of file qquicktextinput_p_p.h.

References QTextLayout::cursorMoveStyle().

Referenced by processKeyEvent().

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

◆ cursorWordBackward()

void QQuickTextInputPrivate::cursorWordBackward ( bool mark)
inline

Definition at line 379 of file qquicktextinput_p_p.h.

References QTextLayout::previousCursorPosition(), and QTextLayout::SkipWords.

Referenced by processKeyEvent().

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

◆ cursorWordForward()

void QQuickTextInputPrivate::cursorWordForward ( bool mark)
inline

Definition at line 378 of file qquicktextinput_p_p.h.

References QTextLayout::nextCursorPosition(), and QTextLayout::SkipWords.

Referenced by processKeyEvent().

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

◆ del()

void QQuickTextInputPrivate::del ( )

Handles the behavior for the delete key or function. Removes the current selection if there is a selection, otherwise removes the character after the cursor position.

See also
del()

Definition at line 3360 of file qquicktextinput.cpp.

References m_cursor, m_textLayout, m_undoState, and QTextLayout::nextCursorPosition().

Referenced by processKeyEvent().

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

◆ deselect()

void QQuickTextInputPrivate::deselect ( )
inline

Definition at line 386 of file qquicktextinput_p_p.h.

Referenced by handleFocusEvent().

+ Here is the caller graph for this function:

◆ determineHorizontalAlignment()

bool QQuickTextInputPrivate::determineHorizontalAlignment ( )

Definition at line 663 of file qquicktextinput.cpp.

References QQuickTextInput::AlignLeft, QQuickTextInput::AlignRight, direction, hAlignImplicit, QGuiApplication::inputMethod(), Qt::LayoutDirectionAuto, Qt::RightToLeft, setHAlign(), and textDirection().

Referenced by init().

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

◆ end() [1/2]

int QQuickTextInputPrivate::end ( ) const
inline

Definition at line 345 of file qquicktextinput_p_p.h.

References QString::size().

Referenced by processKeyEvent(), and selectWordAtPos().

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

◆ end() [2/2]

void QQuickTextInputPrivate::end ( bool mark)
inline

Definition at line 382 of file qquicktextinput_p_p.h.

References text.

◆ ensureVisible()

void QQuickTextInputPrivate::ensureVisible ( int position,
int preeditCursor = 0,
int preeditLength = 0 )

Definition at line 1817 of file qquicktextinput.cpp.

References QTextLine::cursorToX(), hscroll, QTextLine::isValid(), QTextLayout::lineForTextPosition(), m_textLayout, QTextLine::naturalTextWidth(), position(), Q_ASSERT, qMax(), and textLayoutDirty.

Referenced by updateHorizontalScroll().

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

◆ fixup()

bool QQuickTextInputPrivate::fixup ( )

Fixes the current text so that it is valid given any set validators.

Returns true if the text was changed. Otherwise returns false.

Definition at line 3476 of file qquicktextinput.cpp.

References QValidator::Acceptable, m_cursor, and m_text.

Referenced by handleFocusEvent(), and processKeyEvent().

+ Here is the caller graph for this function:

◆ get()

static QQuickTextInputPrivate * QQuickTextInputPrivate::get ( QQuickTextInput * t)
inlinestatic

Definition at line 283 of file qquicktextinput_p_p.h.

Referenced by QQuickComboBoxPrivate::calculateWidestTextWidth().

+ Here is the caller graph for this function:

◆ getImplicitWidth()

qreal QQuickTextInputPrivate::getImplicitWidth ( ) const
overridevirtual

Reimplemented from QQuickItemPrivate.

Definition at line 3066 of file qquicktextinput.cpp.

References calculateImplicitWidthForText(), d, QQuickItemPrivate::implicitWidth, m_text, and requireImplicitWidth.

+ Here is the call graph for this function:

◆ handleFocusEvent()

void QQuickTextInputPrivate::handleFocusEvent ( QFocusEvent * event)

◆ hasPendingTripleClick()

bool QQuickTextInputPrivate::hasPendingTripleClick ( ) const
inline

Definition at line 286 of file qquicktextinput_p_p.h.

References QElapsedTimer::hasExpired(), and QGuiApplication::styleHints().

+ Here is the call graph for this function:

◆ hasSelectedText()

bool QQuickTextInputPrivate::hasSelectedText ( ) const
inline

Definition at line 319 of file qquicktextinput_p_p.h.

References QString::isEmpty().

Referenced by handleFocusEvent(), and processKeyEvent().

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

◆ home()

void QQuickTextInputPrivate::home ( bool mark)
inline

Definition at line 381 of file qquicktextinput_p_p.h.

Referenced by processKeyEvent().

+ Here is the caller graph for this function:

◆ init()

◆ inputMask()

QString QQuickTextInputPrivate::inputMask ( ) const
inline

Definition at line 397 of file qquicktextinput_p_p.h.

◆ insert()

void QQuickTextInputPrivate::insert ( const QString & newText)

Inserts the given newText at the current cursor position. If there is any selected text it is removed prior to insertion of the new text.

Definition at line 3380 of file qquicktextinput.cpp.

References m_undoState.

Referenced by processKeyEvent().

+ Here is the caller graph for this function:

◆ isImplicitResizeEnabled()

bool QQuickTextInputPrivate::isImplicitResizeEnabled ( ) const

Definition at line 3139 of file qquicktextinput.cpp.

References extra.

Referenced by updateLayout().

+ Here is the caller graph for this function:

◆ isRedoAvailable()

bool QQuickTextInputPrivate::isRedoAvailable ( ) const
inline

Definition at line 309 of file qquicktextinput_p_p.h.

◆ isUndoAvailable()

bool QQuickTextInputPrivate::isUndoAvailable ( ) const
inline

Definition at line 308 of file qquicktextinput_p_p.h.

◆ layoutDirection()

Qt::LayoutDirection QQuickTextInputPrivate::layoutDirection ( ) const

Definition at line 650 of file qquicktextinput.cpp.

References direction, QGuiApplication::inputMethod(), Qt::LayoutDirectionAuto, Qt::LeftToRight, m_layoutDirection, and textDirection().

Referenced by processKeyEvent(), and updateLayout().

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

◆ mirrorChange()

void QQuickTextInputPrivate::mirrorChange ( )
overridevirtual

◆ moveCursor()

void QQuickTextInputPrivate::moveCursor ( int pos,
bool mark = false )

Moves the cursor to the given position pos. If mark is true will adjust the currently selected text.

Definition at line 3499 of file qquicktextinput.cpp.

References emit, m_cursor, m_maskData, m_selDirty, m_selend, m_selstart, nextMaskBlank(), pos, prevMaskBlank(), qMax(), and qMin().

Referenced by processKeyEvent(), and selectWordAtPos().

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

◆ nextMaskBlank()

int QQuickTextInputPrivate::nextMaskBlank ( int pos)
inline

Definition at line 294 of file qquicktextinput_p_p.h.

References pos.

Referenced by moveCursor().

+ Here is the caller graph for this function:

◆ padding()

qreal QQuickTextInputPrivate::padding ( ) const
inline

Definition at line 442 of file qquicktextinput_p_p.h.

Referenced by QQuickTextInput::setBottomPadding(), setBottomPadding(), QQuickTextInput::setLeftPadding(), setLeftPadding(), QQuickTextInput::setPadding(), QQuickTextInput::setRightPadding(), setRightPadding(), QQuickTextInput::setTopPadding(), and setTopPadding().

+ Here is the caller graph for this function:

◆ positionAt() [1/2]

int QQuickTextInputPrivate::positionAt ( const QPointF & point,
QTextLine::CursorPosition position = QTextLine::CursorBetweenCharacters ) const
inline

Definition at line 333 of file qquicktextinput_p_p.h.

References position(), positionAt(), QPointF::x(), and QPointF::y().

+ Here is the call graph for this function:

◆ positionAt() [2/2]

int QQuickTextInputPrivate::positionAt ( qreal x,
qreal y,
QTextLine::CursorPosition position ) const

Definition at line 1478 of file qquicktextinput.cpp.

References hscroll, i, line, QTextLayout::lineAt(), QTextLayout::lineCount(), m_textLayout, position(), and vscroll.

Referenced by sendMouseEventToInputContext().

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

◆ prevMaskBlank()

int QQuickTextInputPrivate::prevMaskBlank ( int pos)
inline

Definition at line 301 of file qquicktextinput_p_p.h.

References pos.

Referenced by backspace(), and moveCursor().

+ Here is the caller graph for this function:

◆ processKeyEvent()

void QQuickTextInputPrivate::processKeyEvent ( QKeyEvent * ev)

Definition at line 4548 of file qquicktextinput.cpp.

References QQuickItemPrivate::activeFocus, backspace(), clear(), QClipboard::Clipboard, QInputMethod::commit(), Qt::ControlModifier, QKeySequence::Copy, copy(), cursorForward(), cursorMoveStyle(), cursorWordBackward(), cursorWordForward(), QKeySequence::Cut, del(), QKeySequence::Delete, QKeySequence::DeleteCompleteLine, QKeySequence::DeleteEndOfLine, QKeySequence::DeleteEndOfWord, QKeySequence::DeleteStartOfWord, emit, end(), fixup(), hasSelectedText(), home(), QGuiApplication::inputMethod(), insert(), QInputControl::isAcceptableInput(), Qt::Key_Backspace, Qt::Key_Direction_L, Qt::Key_Direction_R, Qt::Key_Enter, Qt::Key_Return, layoutDirection(), Qt::LeftToRight, m_blinkEnabled, m_cursor, m_echoMode, m_inputControl, m_passwordEchoEditing, m_readOnly, m_text, moveCursor(), QKeySequence::MoveToEndOfBlock, QKeySequence::MoveToEndOfLine, QKeySequence::MoveToNextChar, QKeySequence::MoveToNextWord, QKeySequence::MoveToPreviousChar, QKeySequence::MoveToPreviousWord, QKeySequence::MoveToStartOfBlock, QKeySequence::MoveToStartOfLine, QQuickTextInput::Normal, overwriteMode, QQuickTextInput::PasswordEchoOnEdit, QKeySequence::Paste, paste(), QKeySequence::Redo, Qt::RightToLeft, QKeySequence::SelectAll, selectAll(), QKeySequence::SelectEndOfBlock, QKeySequence::SelectEndOfLine, selectionEnd(), selectionStart(), QKeySequence::SelectNextChar, QKeySequence::SelectNextWord, QKeySequence::SelectPreviousChar, QKeySequence::SelectPreviousWord, QKeySequence::SelectStartOfBlock, QKeySequence::SelectStartOfLine, setLayoutDirection(), QKeySequence::Undo, unknown, updateCursorBlinking(), updatePasswordEchoEditing(), and Qt::VisualMoveStyle.

+ Here is the call graph for this function:

◆ realText()

QString QQuickTextInputPrivate::realText ( ) const

Definition at line 210 of file qquicktextinput.cpp.

References QString::fromLatin1(), m_maskData, and m_text.

+ Here is the call graph for this function:

◆ removeSelection()

void QQuickTextInputPrivate::removeSelection ( )
inline

Definition at line 337 of file qquicktextinput_p_p.h.

◆ selectAll()

void QQuickTextInputPrivate::selectAll ( )
inline

Definition at line 387 of file qquicktextinput_p_p.h.

References QString::size().

Referenced by processKeyEvent().

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

◆ selectedText()

QString QQuickTextInputPrivate::selectedText ( ) const
inline

Definition at line 323 of file qquicktextinput_p_p.h.

References QString::mid().

+ Here is the call graph for this function:

◆ selectionEnd()

int QQuickTextInputPrivate::selectionEnd ( ) const
inline

Definition at line 328 of file qquicktextinput_p_p.h.

Referenced by processKeyEvent().

+ Here is the caller graph for this function:

◆ selectionStart()

int QQuickTextInputPrivate::selectionStart ( ) const
inline

Definition at line 327 of file qquicktextinput_p_p.h.

Referenced by processKeyEvent().

+ Here is the caller graph for this function:

◆ selectWordAtPos()

void QQuickTextInputPrivate::selectWordAtPos ( int cursor)

Sets the selection to cover the word at the given cursor position. The word boundaries are defined by the behavior of QTextLayout::SkipWords cursor mode.

Definition at line 3677 of file qquicktextinput.cpp.

References QString::at(), cursor, end(), m_text, m_textLayout, moveCursor(), next, QTextLayout::nextCursorPosition(), QTextLayout::previousCursorPosition(), and QTextLayout::SkipWords.

+ Here is the call graph for this function:

◆ sendMouseEventToInputContext()

bool QQuickTextInputPrivate::sendMouseEventToInputContext ( QMouseEvent * event)

Definition at line 1698 of file qquicktextinput.cpp.

References QInputMethod::Click, QGuiApplication::inputMethod(), m_cursor, m_textLayout, QEvent::MouseButtonRelease, positionAt(), QTextLayout::preeditAreaText(), Q_UNUSED, and QString::size().

+ Here is the call graph for this function:

◆ setBlinkingCursorEnabled()

void QQuickTextInputPrivate::setBlinkingCursorEnabled ( bool enable)

Definition at line 4498 of file qquicktextinput.cpp.

References QObjectPrivate::connect(), QStyleHints::cursorFlashTimeChanged(), disconnect(), m_blinkEnabled, qApp, and updateCursorBlinking().

Referenced by handleFocusEvent().

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

◆ setBottomPadding()

void QQuickTextInputPrivate::setBottomPadding ( qreal value,
bool reset = false )

Definition at line 3124 of file qquicktextinput.cpp.

References emit, extra, padding(), qFuzzyCompare(), and updateLayout().

+ Here is the call graph for this function:

◆ setCursorMoveStyle()

void QQuickTextInputPrivate::setCursorMoveStyle ( Qt::CursorMoveStyle style)
inline

Definition at line 360 of file qquicktextinput_p_p.h.

References QTextLayout::setCursorMoveStyle().

+ Here is the call graph for this function:

◆ setCursorPosition()

void QQuickTextInputPrivate::setCursorPosition ( int pos)
inline

Definition at line 393 of file qquicktextinput_p_p.h.

References pos, qMax(), and QString::size().

+ Here is the call graph for this function:

◆ setHAlign()

bool QQuickTextInputPrivate::setHAlign ( QQuickTextInput::HAlignment align,
bool forceAlign = false )

Definition at line 594 of file qquicktextinput.cpp.

References QQuickTextInput::AlignHCenter, emit, hAlign, and hAlignImplicit.

Referenced by determineHorizontalAlignment().

+ Here is the caller graph for this function:

◆ setImplicitResizeEnabled()

void QQuickTextInputPrivate::setImplicitResizeEnabled ( bool enabled)

Definition at line 3144 of file qquicktextinput.cpp.

References extra.

◆ setInputMask()

void QQuickTextInputPrivate::setInputMask ( const QString & mask)
inline

Definition at line 398 of file qquicktextinput_p_p.h.

◆ setLayoutDirection()

void QQuickTextInputPrivate::setLayoutDirection ( Qt::LayoutDirection direction)
inline

Definition at line 420 of file qquicktextinput_p_p.h.

References direction.

Referenced by processKeyEvent().

+ Here is the caller graph for this function:

◆ setLeftPadding()

void QQuickTextInputPrivate::setLeftPadding ( qreal value,
bool reset = false )

Definition at line 3094 of file qquicktextinput.cpp.

References emit, extra, padding(), qFuzzyCompare(), and updateLayout().

+ Here is the call graph for this function:

◆ setNativeCursorEnabled()

void QQuickTextInputPrivate::setNativeCursorEnabled ( bool )
inline

Definition at line 290 of file qquicktextinput_p_p.h.

◆ setRightPadding()

void QQuickTextInputPrivate::setRightPadding ( qreal value,
bool reset = false )

Definition at line 3109 of file qquicktextinput.cpp.

References emit, extra, padding(), qFuzzyCompare(), and updateLayout().

+ Here is the call graph for this function:

◆ setSelection()

void QQuickTextInputPrivate::setSelection ( int start,
int length )

Sets length characters from the given start position as selected. The given start position must be within the current text for the line control. If length characters cannot be selected, then the selection will extend to the end of the current text.

Definition at line 3413 of file qquicktextinput.cpp.

References emit, Qt::ImAnchorPosition, Qt::ImAnchorRectangle, Qt::ImCurrentSelection, Qt::ImCursorPosition, Qt::ImCursorRectangle, m_cursor, m_selend, m_selstart, m_text, qMax(), qMin(), qWarning, QString::size(), and start().

+ Here is the call graph for this function:

◆ setTopPadding()

void QQuickTextInputPrivate::setTopPadding ( qreal value,
bool reset = false )

Definition at line 3079 of file qquicktextinput.cpp.

References emit, extra, padding(), qFuzzyCompare(), and updateLayout().

+ Here is the call graph for this function:

◆ start()

int QQuickTextInputPrivate::start ( ) const
inline

Definition at line 344 of file qquicktextinput_p_p.h.

Referenced by setSelection().

+ Here is the caller graph for this function:

◆ startCreatingCursor()

void QQuickTextInputPrivate::startCreatingCursor ( )

◆ textAfterSelection()

QString QQuickTextInputPrivate::textAfterSelection ( ) const
inline

Definition at line 325 of file qquicktextinput_p_p.h.

References QString::mid().

+ Here is the call graph for this function:

◆ textBeforeSelection()

QString QQuickTextInputPrivate::textBeforeSelection ( ) const
inline

Definition at line 324 of file qquicktextinput_p_p.h.

References QString::left().

+ Here is the call graph for this function:

◆ textDirection()

Qt::LayoutDirection QQuickTextInputPrivate::textDirection ( ) const

Definition at line 625 of file qquicktextinput.cpp.

References QString::constData(), QString::isEmpty(), Qt::LayoutDirectionAuto, Qt::LeftToRight, m_text, m_textLayout, QTextLayout::preeditAreaText(), Qt::RightToLeft, and text.

Referenced by determineHorizontalAlignment(), and layoutDirection().

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

◆ updateBaselineOffset()

void QQuickTextInputPrivate::updateBaselineOffset ( )

QQuickTextInputPrivate::updateBaselineOffset.

Assumes contentSize.height() is already calculated.

Definition at line 3228 of file qquicktextinput.cpp.

References QQuickTextInput::AlignBottom, QQuickTextInput::AlignVCenter, contentSize, font, QSizeF::height(), and vAlign.

Referenced by updateLayout().

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

◆ updateCursorBlinking()

void QQuickTextInputPrivate::updateCursorBlinking ( )

Definition at line 4512 of file qquicktextinput.cpp.

References cursorItem, cursorVisible, m_blinkEnabled, m_blinkStatus, m_blinkTimer, m_readOnly, QGuiApplication::styleHints(), UpdatePaintNode, and updateType.

Referenced by processKeyEvent(), and setBlinkingCursorEnabled().

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

◆ updateHorizontalScroll()

void QQuickTextInputPrivate::updateHorizontalScroll ( )

Definition at line 1864 of file qquicktextinput.cpp.

References autoScroll, ensureVisible(), hscroll, m_cursor, m_echoMode, m_textLayout, QQuickTextInput::NoEcho, QTextLayout::preeditAreaText(), and QString::size().

+ Here is the call graph for this function:

◆ updateLayout()

void QQuickTextInputPrivate::updateLayout ( )

Definition at line 3152 of file qquicktextinput.cpp.

References QTextLayout::beginLayout(), contentSize, QTextLayout::createLine(), emit, QTextLayout::endLayout(), font, inLayout, isImplicitResizeEnabled(), layoutDirection(), line, m_textLayout, QQuickTextInput::NativeRendering, QTextOption::NoWrap, qCeil(), qMax(), renderType, requireImplicitWidth, QTextLayout::setFont(), QTextOption::setTextDirection(), QTextLayout::setTextOption(), textLayoutDirty, QTextLayout::textOption(), updateBaselineOffset(), UpdatePaintNode, updateType, and wrapMode.

Referenced by setBottomPadding(), setLeftPadding(), setRightPadding(), and setTopPadding().

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

◆ updatePasswordEchoEditing()

void QQuickTextInputPrivate::updatePasswordEchoEditing ( bool editing)

Sets the password echo editing to editing. If password echo editing is true, then the text of the password is displayed even if the echo mode is set to QLineEdit::PasswordEchoOnEdit. Password echoing editing does not affect other echo modes.

Definition at line 3462 of file qquicktextinput.cpp.

References cancelPasswordEchoTimer(), and m_passwordEchoEditing.

Referenced by handleFocusEvent(), and processKeyEvent().

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

◆ updateVerticalScroll()

void QQuickTextInputPrivate::updateVerticalScroll ( )

Definition at line 1878 of file qquicktextinput.cpp.

References Qt::AlignAbsolute, QQuickTextUtil::alignedY(), Qt::AlignHorizontal_Mask, autoScroll, contentSize, QSizeF::height(), QTextLine::isValid(), QTextLayout::lineForTextPosition(), m_cursor, m_textLayout, QTextLayout::preeditAreaText(), qMax(), QTextLine::rect(), QString::size(), textLayoutDirty, QQuickItemPrivate::top(), QRectF::top(), vAlign, and vscroll.

+ Here is the call graph for this function:

Member Data Documentation

◆ autoScroll

bool QQuickTextInputPrivate::autoScroll

Definition at line 254 of file qquicktextinput_p_p.h.

Referenced by updateHorizontalScroll(), and updateVerticalScroll().

◆ canPaste

bool QQuickTextInputPrivate::canPaste

Definition at line 256 of file qquicktextinput_p_p.h.

◆ canPasteValid

bool QQuickTextInputPrivate::canPasteValid

Definition at line 257 of file qquicktextinput_p_p.h.

◆ canRedo

bool QQuickTextInputPrivate::canRedo

Definition at line 259 of file qquicktextinput_p_p.h.

◆ canUndo

bool QQuickTextInputPrivate::canUndo

Definition at line 258 of file qquicktextinput_p_p.h.

◆ color

QColor QQuickTextInputPrivate::color

Definition at line 209 of file qquicktextinput_p_p.h.

◆ contentSize

QSizeF QQuickTextInputPrivate::contentSize

Definition at line 182 of file qquicktextinput_p_p.h.

Referenced by updateBaselineOffset(), updateLayout(), and updateVerticalScroll().

◆ cursorComponent

QPointer<QQmlComponent> QQuickTextInputPrivate::cursorComponent

Definition at line 186 of file qquicktextinput_p_p.h.

◆ cursorItem

QQuickItem* QQuickTextInputPrivate::cursorItem

Definition at line 201 of file qquicktextinput_p_p.h.

Referenced by updateCursorBlinking().

◆ cursorPending

bool QQuickTextInputPrivate::cursorPending

Definition at line 253 of file qquicktextinput_p_p.h.

◆ cursorVisible

bool QQuickTextInputPrivate::cursorVisible

Definition at line 252 of file qquicktextinput_p_p.h.

Referenced by updateCursorBlinking().

◆ extra

◆ focusOnPress

bool QQuickTextInputPrivate::focusOnPress

Definition at line 251 of file qquicktextinput_p_p.h.

Referenced by handleFocusEvent().

◆ font

◆ hAlign

QQuickTextInput::HAlignment QQuickTextInputPrivate::hAlign

Definition at line 238 of file qquicktextinput_p_p.h.

Referenced by mirrorChange(), and setHAlign().

◆ hAlignImplicit

bool QQuickTextInputPrivate::hAlignImplicit

Definition at line 260 of file qquicktextinput_p_p.h.

Referenced by determineHorizontalAlignment(), mirrorChange(), and setHAlign().

◆ hasImState

bool QQuickTextInputPrivate::hasImState

Definition at line 264 of file qquicktextinput_p_p.h.

◆ hscroll

qreal QQuickTextInputPrivate::hscroll

◆ inLayout

bool QQuickTextInputPrivate::inLayout

Definition at line 276 of file qquicktextinput_p_p.h.

Referenced by updateLayout().

◆ lastSelectionEnd

int QQuickTextInputPrivate::lastSelectionEnd

Definition at line 215 of file qquicktextinput_p_p.h.

Referenced by init().

◆ lastSelectionStart

int QQuickTextInputPrivate::lastSelectionStart

Definition at line 214 of file qquicktextinput_p_p.h.

Referenced by init().

◆ m_acceptableInput

bool QQuickTextInputPrivate::m_acceptableInput

Definition at line 273 of file qquicktextinput_p_p.h.

◆ m_blank

QChar QQuickTextInputPrivate::m_blank

Definition at line 247 of file qquicktextinput_p_p.h.

◆ m_blinkEnabled

bool QQuickTextInputPrivate::m_blinkEnabled

◆ m_blinkStatus

bool QQuickTextInputPrivate::m_blinkStatus

Definition at line 274 of file qquicktextinput_p_p.h.

Referenced by updateCursorBlinking().

◆ m_blinkTimer

int QQuickTextInputPrivate::m_blinkTimer

Definition at line 222 of file qquicktextinput_p_p.h.

Referenced by updateCursorBlinking().

◆ m_cancelText

QString QQuickTextInputPrivate::m_cancelText

Definition at line 197 of file qquicktextinput_p_p.h.

◆ m_cursor

◆ m_echoMode

QQuickTextInput::EchoMode QQuickTextInputPrivate::m_echoMode

Definition at line 241 of file qquicktextinput_p_p.h.

Referenced by anchorRectangle(), processKeyEvent(), and updateHorizontalScroll().

◆ m_history

QVector<Command> QQuickTextInputPrivate::m_history

Definition at line 207 of file qquicktextinput_p_p.h.

◆ m_inputControl

QInputControl* QQuickTextInputPrivate::m_inputControl

Definition at line 204 of file qquicktextinput_p_p.h.

Referenced by init(), and processKeyEvent().

◆ m_inputMask

QString QQuickTextInputPrivate::m_inputMask

Definition at line 196 of file qquicktextinput_p_p.h.

◆ m_lastCursorPos

int QQuickTextInputPrivate::m_lastCursorPos

Definition at line 224 of file qquicktextinput_p_p.h.

◆ m_layoutDirection

Qt::LayoutDirection QQuickTextInputPrivate::m_layoutDirection

Definition at line 245 of file qquicktextinput_p_p.h.

Referenced by calculateImplicitWidthForText(), and layoutDirection().

◆ m_maskData

std::unique_ptr<MaskInputData[]> QQuickTextInputPrivate::m_maskData

Definition at line 203 of file qquicktextinput_p_p.h.

Referenced by backspace(), moveCursor(), and realText().

◆ m_maxLength

int QQuickTextInputPrivate::m_maxLength

Definition at line 223 of file qquicktextinput_p_p.h.

◆ m_passwordCharacter

QChar QQuickTextInputPrivate::m_passwordCharacter

Definition at line 248 of file qquicktextinput_p_p.h.

◆ m_passwordEchoEditing

bool QQuickTextInputPrivate::m_passwordEchoEditing

◆ m_passwordEchoTimer

QBasicTimer QQuickTextInputPrivate::m_passwordEchoTimer

Definition at line 213 of file qquicktextinput_p_p.h.

Referenced by handleFocusEvent().

◆ m_passwordMaskDelay

int QQuickTextInputPrivate::m_passwordMaskDelay

Definition at line 249 of file qquicktextinput_p_p.h.

◆ m_readOnly

bool QQuickTextInputPrivate::m_readOnly

◆ m_selDirty

bool QQuickTextInputPrivate::m_selDirty

Definition at line 271 of file qquicktextinput_p_p.h.

Referenced by moveCursor().

◆ m_selend

int QQuickTextInputPrivate::m_selend

Definition at line 227 of file qquicktextinput_p_p.h.

Referenced by anchorRectangle(), clear(), moveCursor(), and setSelection().

◆ m_selstart

int QQuickTextInputPrivate::m_selstart

Definition at line 226 of file qquicktextinput_p_p.h.

Referenced by anchorRectangle(), clear(), moveCursor(), and setSelection().

◆ m_separator

bool QQuickTextInputPrivate::m_separator

Definition at line 265 of file qquicktextinput_p_p.h.

◆ m_text

◆ m_textDirty

bool QQuickTextInputPrivate::m_textDirty

Definition at line 267 of file qquicktextinput_p_p.h.

◆ m_textLayout

◆ m_transactions

QList<int> QQuickTextInputPrivate::m_transactions

Definition at line 206 of file qquicktextinput_p_p.h.

◆ m_undoState

int QQuickTextInputPrivate::m_undoState

Definition at line 225 of file qquicktextinput_p_p.h.

Referenced by backspace(), clear(), del(), and insert().

◆ m_validInput

bool QQuickTextInputPrivate::m_validInput

Definition at line 272 of file qquicktextinput_p_p.h.

◆ mouseSelectionMode

QQuickTextInput::SelectionMode QQuickTextInputPrivate::mouseSelectionMode

Definition at line 244 of file qquicktextinput_p_p.h.

◆ overwriteMode

bool QQuickTextInputPrivate::overwriteMode

Definition at line 278 of file qquicktextinput_p_p.h.

Referenced by processKeyEvent().

◆ persistentSelection

bool QQuickTextInputPrivate::persistentSelection

Definition at line 263 of file qquicktextinput_p_p.h.

Referenced by handleFocusEvent().

◆ pressPos

QPointF QQuickTextInputPrivate::pressPos

Definition at line 183 of file qquicktextinput_p_p.h.

◆ renderType

QQuickTextInput::RenderType QQuickTextInputPrivate::renderType

Definition at line 242 of file qquicktextinput_p_p.h.

Referenced by init(), and updateLayout().

◆ requireImplicitWidth

bool QQuickTextInputPrivate::requireImplicitWidth

Definition at line 277 of file qquicktextinput_p_p.h.

Referenced by getImplicitWidth(), and updateLayout().

◆ selectByMouse

bool QQuickTextInputPrivate::selectByMouse

Definition at line 255 of file qquicktextinput_p_p.h.

Referenced by QQuickTextFieldPrivate::readOnlyChanged().

◆ selectedTextColor

QColor QQuickTextInputPrivate::selectedTextColor

Definition at line 211 of file qquicktextinput_p_p.h.

◆ selectionColor

QColor QQuickTextInputPrivate::selectionColor

Definition at line 210 of file qquicktextinput_p_p.h.

◆ selectPressed

bool QQuickTextInputPrivate::selectPressed

Definition at line 261 of file qquicktextinput_p_p.h.

◆ sourceFont

QFont QQuickTextInputPrivate::sourceFont

◆ textLayoutDirty

bool QQuickTextInputPrivate::textLayoutDirty

Definition at line 262 of file qquicktextinput_p_p.h.

Referenced by ensureVisible(), updateLayout(), and updateVerticalScroll().

◆ textNode

QSGInternalTextNode* QQuickTextInputPrivate::textNode

Definition at line 202 of file qquicktextinput_p_p.h.

◆ tripleClickStartPoint

QPointF QQuickTextInputPrivate::tripleClickStartPoint

Definition at line 184 of file qquicktextinput_p_p.h.

◆ tripleClickTimer

QElapsedTimer QQuickTextInputPrivate::tripleClickTimer

Definition at line 181 of file qquicktextinput_p_p.h.

◆ updateType

UpdateType QQuickTextInputPrivate::updateType

Definition at line 243 of file qquicktextinput_p_p.h.

Referenced by updateCursorBlinking(), and updateLayout().

◆ vAlign

QQuickTextInput::VAlignment QQuickTextInputPrivate::vAlign

Definition at line 239 of file qquicktextinput_p_p.h.

Referenced by updateBaselineOffset(), and updateVerticalScroll().

◆ vscroll

qreal QQuickTextInputPrivate::vscroll

Definition at line 192 of file qquicktextinput_p_p.h.

Referenced by anchorRectangle(), positionAt(), and updateVerticalScroll().

◆ wrapMode

QQuickTextInput::WrapMode QQuickTextInputPrivate::wrapMode

Definition at line 240 of file qquicktextinput_p_p.h.

Referenced by calculateImplicitWidthForText(), and updateLayout().


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