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
QQuickTextAreaPrivate Class Reference

#include <qquicktextarea_p_p.h>

+ Inheritance diagram for QQuickTextAreaPrivate:
+ Collaboration diagram for QQuickTextAreaPrivate:

Classes

struct  ExtraData
 

Public Member Functions

 QQuickTextAreaPrivate ()
 Multi-line text input area.
 
 ~QQuickTextAreaPrivate ()
 
QMarginsF getInset () const
 
qreal getTopInset () const
 
qreal getLeftInset () const
 
qreal getRightInset () const
 
qreal getBottomInset () const
 
void setTopInset (qreal value, bool reset=false)
 
void setLeftInset (qreal value, bool reset=false)
 
void setRightInset (qreal value, bool reset=false)
 
void setBottomInset (qreal value, bool reset=false)
 
void resizeBackground ()
 
void resolveFont ()
 
void inheritFont (const QFont &font)
 
void updateFont (const QFont &font)
 
void setFont_helper (const QFont &font)
 
void attachFlickable (QQuickFlickable *flickable)
 
void detachFlickable ()
 
void ensureCursorVisible ()
 
void resizeFlickableControl ()
 
void resizeFlickableContent ()
 
void itemGeometryChanged (QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override
 
qreal getImplicitWidth () const override
 
qreal getImplicitHeight () const override
 
void implicitWidthChanged () override
 
void implicitHeightChanged () override
 
void readOnlyChanged (bool isReadOnly)
 
void cancelBackground ()
 
void executeBackground (bool complete=false)
 
void itemImplicitWidthChanged (QQuickItem *item) override
 
void itemImplicitHeightChanged (QQuickItem *item) override
 
void itemDestroyed (QQuickItem *item) override
 
QPalette defaultPalette () const override
 
- Public Member Functions inherited from QQuickTextEditPrivate
 QQuickTextEditPrivate ()
 
 ~QQuickTextEditPrivate ()
 
void init ()
 
void resetInputMethod ()
 
void updateDefaultTextOption ()
 
void onDocumentStatusChanged ()
 
void relayoutDocument ()
 
bool determineHorizontalAlignment ()
 
bool setHAlign (QQuickTextEdit::HAlignment, bool forceAlign=false)
 
void mirrorChange () override
 
bool transformChanged (QQuickItem *transformedItem) override
 
qreal getImplicitWidth () const override
 
Qt::LayoutDirection textDirection (const QString &text) const
 
bool isLinkHoveredConnected ()
 
void setNativeCursorEnabled (bool)
 
void handleFocusEvent (QFocusEvent *event)
 
void addCurrentTextNodeToRoot (QQuickTextNodeEngine *, QSGTransformNode *, QSGInternalTextNode *, TextNodeIterator &, int startPos)
 
QSGInternalTextNodecreateTextNode ()
 
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 ()
 
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
 
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 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
 
- Public Member Functions inherited from QQuickItemChangeListener
virtual ~QQuickItemChangeListener ()
 
virtual void itemSiblingOrderChanged (QQuickItem *)
 
virtual void itemVisibilityChanged (QQuickItem *)
 
virtual void itemEnabledChanged (QQuickItem *)
 
virtual void itemOpacityChanged (QQuickItem *)
 
virtual void itemChildAdded (QQuickItem *, QQuickItem *)
 
virtual void itemChildRemoved (QQuickItem *, QQuickItem *)
 
virtual void itemParentChanged (QQuickItem *, QQuickItem *)
 
virtual void itemRotationChanged (QQuickItem *)
 
virtual void itemFocusChanged (QQuickItem *, Qt::FocusReason)
 
virtual QQuickAnchorsPrivateanchorPrivate ()
 

Static Public Member Functions

static QQuickTextAreaPrivateget (QQuickTextArea *item)
 
- Static Public Member Functions inherited from QQuickTextEditPrivate
static QQuickTextEditPrivateget (QQuickTextEdit *item)
 
- 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
 
bool resizingBackground = false
 
QPalette resolvedPalette
 
QQuickDeferredPointer< QQuickItembackground
 
QString placeholder
 
QColor placeholderColor
 
QQuickPressHandler pressHandler
 
QQuickFlickableflickable = nullptr
 
- Public Attributes inherited from QQuickTextEditPrivate
QLazilyAllocated< ExtraDataextra
 
QColor color = QRgb(0xFF000000)
 
QColor selectionColor = QRgb(0xFF000080)
 
QColor selectedTextColor = QRgb(0xFFFFFFFF)
 
QSizeF contentSize
 
qreal textMargin = 0
 
qreal xoff = 0
 
qreal yoff = 0
 
QString text
 
QUrl baseUrl
 
QFont sourceFont
 
QFont font
 
QQmlComponentcursorComponent = nullptr
 
QQuickItemcursorItem = nullptr
 
QTextDocumentdocument = nullptr
 
QQuickTextControlcontrol = nullptr
 
QQuickTextDocumentquickDocument = nullptr
 
QQuickTextSelectioncursorSelection = nullptr
 
QList< NodetextNodeMap
 
QList< QQuickPixmap * > pixmapsInProgress
 
int lastSelectionStart = 0
 
int lastSelectionEnd = 0
 
int lineCount = 0
 
int firstBlockInViewport = -1
 
int firstBlockPastViewport = -1
 
int renderedBlockCount = -1
 
QRectF renderedRegion
 
QQuickTextEdit::HAlignment hAlign = QQuickTextEdit::AlignLeft
 
QQuickTextEdit::VAlignment vAlign = QQuickTextEdit::AlignTop
 
QQuickTextEdit::TextFormat format = QQuickTextEdit::PlainText
 
QQuickTextEdit::WrapMode wrapMode = QQuickTextEdit::NoWrap
 
QQuickTextEdit::RenderType renderType = QQuickTextUtil::textRenderType<QQuickTextEdit>()
 
Qt::LayoutDirection contentDirection = Qt::LayoutDirectionAuto
 
QQuickTextEdit::SelectionMode mouseSelectionMode = QQuickTextEdit::SelectCharacters
 
UpdateType updateType = UpdatePaintNode
 
bool dirty: 1
 
bool richText: 1
 
bool cursorVisible: 1
 
bool cursorPending: 1
 
bool focusOnPress: 1
 
bool persistentSelection: 1
 
bool requireImplicitWidth:1
 
bool selectByMouse:1
 
bool canPaste:1
 
bool canPasteValid:1
 
bool hAlignImplicit:1
 
bool textCached:1
 
bool inLayout:1
 
bool selectByKeyboard:1
 
bool selectByKeyboardSet:1
 
bool hadSelection: 1
 
bool markdownText: 1
 
bool inResize: 1
 
bool ownsDocument: 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

- Public Types inherited from QQuickTextEditPrivate
enum  UpdateType { UpdateNone , UpdateOnlyPreprocess , UpdatePaintNode , UpdateAll }
 
typedef QQuickTextEdit Public
 
typedef QList< Node >::iterator TextNodeIterator
 
- 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>
 
- Static Public Attributes inherited from QQuickTextEditPrivate
static const int largeTextSizeThreshold = QQUICKTEXT_LARGETEXT_THRESHOLD
 
- Protected Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate >
void setCurrentColorGroup ()
 

Detailed Description

Definition at line 31 of file qquicktextarea_p_p.h.

Constructor & Destructor Documentation

◆ QQuickTextAreaPrivate()

QQuickTextAreaPrivate::QQuickTextAreaPrivate ( )

Multi-line text input area.

\qmltype TextArea
\inherits TextEdit

! \instantiates QQuickTextArea \inqmlmodule QtQuick.Controls

Since
5.7

TextArea is a multi-line text editor. TextArea extends TextEdit with a \l {placeholderText}{placeholder text} functionality, and adds decoration.

TextArea {
placeholderText: qsTr("Enter description")
}

TextArea is not scrollable by itself. Especially on screen-size constrained platforms, it is often preferable to make entire application pages scrollable. On such a scrollable page, a non-scrollable TextArea might behave better than nested scrollable controls. Notice, however, that in such a scenario, the background decoration of the TextArea scrolls together with the rest of the scrollable content.

Definition at line 122 of file qquicktextarea.cpp.

◆ ~QQuickTextAreaPrivate()

QQuickTextAreaPrivate::~QQuickTextAreaPrivate ( )

Definition at line 126 of file qquicktextarea.cpp.

Member Function Documentation

◆ attachFlickable()

◆ cancelBackground()

void QQuickTextAreaPrivate::cancelBackground ( )

Definition at line 426 of file qquicktextarea.cpp.

References backgroundName(), and quickCancelDeferred().

+ Here is the call graph for this function:

◆ defaultPalette()

QPalette QQuickTextAreaPrivate::defaultPalette ( ) const
overridevirtual

The default palette for this component.

Reimplemented from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate >.

Definition at line 470 of file qquicktextarea.cpp.

References QQuickTheme::palette(), and QQuickTheme::TextArea.

+ Here is the call graph for this function:

◆ detachFlickable()

void QQuickTextAreaPrivate::detachFlickable ( )

Definition at line 291 of file qquicktextarea.cpp.

References background, QQuickFlickable::contentHeightChanged(), QQuickTextEdit::contentSizeChanged(), QQuickFlickable::contentWidthChanged(), QQuickFlickable::contentXChanged(), QQuickFlickable::contentYChanged(), QQuickTextEdit::cursorRectangleChanged(), QQuickItemPrivate::Destroyed, QObject::disconnect(), QObjectPrivate::disconnect(), ensureCursorVisible(), flickable, QQuickItemPrivate::get(), QQuickGeometryChange::Nothing, QQuickItem::parentItem(), resizeBackground(), resizeFlickableContent(), resizeFlickableControl(), QQuickItem::setParentItem(), and QQuickItem::update().

Referenced by itemDestroyed().

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

◆ ensureCursorVisible()

void QQuickTextAreaPrivate::ensureCursorVisible ( )

Definition at line 314 of file qquicktextarea.cpp.

References QRectF::bottom(), QQuickFlickable::contentHeight, QQuickFlickable::contentX, QQuickFlickable::contentY, flickable, QQuickItem::height, QRectF::left(), qFuzzyCompare(), QRectF::right(), QQuickFlickable::setContentX(), QQuickFlickable::setContentY(), QRectF::top(), QQuickItem::width, and QRectF::y().

Referenced by attachFlickable(), and detachFlickable().

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

◆ executeBackground()

void QQuickTextAreaPrivate::executeBackground ( bool complete = false)

Definition at line 432 of file qquicktextarea.cpp.

References background, backgroundName(), quickBeginDeferred(), quickCompleteDeferred(), and QQuickUntypedDeferredPointer::wasExecuted().

Referenced by QQuickTextArea::background().

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

◆ get()

static QQuickTextAreaPrivate * QQuickTextAreaPrivate::get ( QQuickTextArea * item)
inlinestatic

Definition at line 39 of file qquicktextarea_p_p.h.

References QObjectPrivate::get(), and item.

Referenced by QQuickTextAreaAttached::setFlickable(), and QQuickControlPrivate::updateFontRecur().

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

◆ getBottomInset()

qreal QQuickTextAreaPrivate::getBottomInset ( ) const
inline

Definition at line 48 of file qquicktextarea_p_p.h.

References extra.

Referenced by getInset(), and resizeBackground().

+ Here is the caller graph for this function:

◆ getImplicitHeight()

qreal QQuickTextAreaPrivate::getImplicitHeight ( ) const
overridevirtual

Reimplemented from QQuickItemPrivate.

Definition at line 398 of file qquicktextarea.cpp.

References QQuickItemPrivate::getImplicitHeight().

+ Here is the call graph for this function:

◆ getImplicitWidth()

qreal QQuickTextAreaPrivate::getImplicitWidth ( ) const
overridevirtual

Reimplemented from QQuickItemPrivate.

Definition at line 393 of file qquicktextarea.cpp.

References QQuickItemPrivate::getImplicitWidth().

+ Here is the call graph for this function:

◆ getInset()

QMarginsF QQuickTextAreaPrivate::getInset ( ) const
inline

Definition at line 44 of file qquicktextarea_p_p.h.

References getBottomInset(), getLeftInset(), getRightInset(), and getTopInset().

Referenced by setBottomInset(), setLeftInset(), setRightInset(), and setTopInset().

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

◆ getLeftInset()

qreal QQuickTextAreaPrivate::getLeftInset ( ) const
inline

Definition at line 46 of file qquicktextarea_p_p.h.

References extra.

Referenced by getInset(), and resizeBackground().

+ Here is the caller graph for this function:

◆ getRightInset()

qreal QQuickTextAreaPrivate::getRightInset ( ) const
inline

Definition at line 47 of file qquicktextarea_p_p.h.

References extra.

Referenced by getInset(), and resizeBackground().

+ Here is the caller graph for this function:

◆ getTopInset()

qreal QQuickTextAreaPrivate::getTopInset ( ) const
inline

Definition at line 45 of file qquicktextarea_p_p.h.

References extra.

Referenced by getInset(), and resizeBackground().

+ Here is the caller graph for this function:

◆ implicitHeightChanged()

void QQuickTextAreaPrivate::implicitHeightChanged ( )
overridevirtual

Reimplemented from QQuickItemPrivate.

Definition at line 410 of file qquicktextarea.cpp.

References emit, and QQuickItemPrivate::implicitHeightChanged().

+ Here is the call graph for this function:

◆ implicitWidthChanged()

void QQuickTextAreaPrivate::implicitWidthChanged ( )
overridevirtual

Reimplemented from QQuickItemPrivate.

Definition at line 403 of file qquicktextarea.cpp.

References emit, and QQuickItemPrivate::implicitWidthChanged().

+ Here is the call graph for this function:

◆ inheritFont()

void QQuickTextAreaPrivate::inheritFont ( const QFont & font)

Definition at line 223 of file qquicktextarea.cpp.

References extra, QQuickTextEditPrivate::font, QQuickTheme::font(), QFont::resolve(), QFont::resolveMask(), setFont_helper(), QFont::setResolveMask(), and QQuickTheme::TextArea.

Referenced by resolveFont().

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

◆ itemDestroyed()

void QQuickTextAreaPrivate::itemDestroyed ( QQuickItem * item)
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 458 of file qquicktextarea.cpp.

References background, detachFlickable(), emit, flickable, and item.

+ Here is the call graph for this function:

◆ itemGeometryChanged()

void QQuickTextAreaPrivate::itemGeometryChanged ( QQuickItem * item,
QQuickGeometryChange change,
const QRectF & diff )
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 374 of file qquicktextarea.cpp.

References background, extra, flickable, QQuickItemPrivate::get(), QQuickGeometryChange::heightChange(), item, Q_UNUSED, resizeBackground(), resizeFlickableControl(), resizingBackground, and QQuickGeometryChange::widthChange().

+ Here is the call graph for this function:

◆ itemImplicitHeightChanged()

void QQuickTextAreaPrivate::itemImplicitHeightChanged ( QQuickItem * item)
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 451 of file qquicktextarea.cpp.

References background, emit, and item.

◆ itemImplicitWidthChanged()

void QQuickTextAreaPrivate::itemImplicitWidthChanged ( QQuickItem * item)
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 444 of file qquicktextarea.cpp.

References background, emit, and item.

◆ readOnlyChanged()

void QQuickTextAreaPrivate::readOnlyChanged ( bool isReadOnly)

◆ resizeBackground()

void QQuickTextAreaPrivate::resizeBackground ( )

Definition at line 178 of file qquicktextarea.cpp.

References background, extra, flickable, QQuickItemPrivate::get(), getBottomInset(), getLeftInset(), getRightInset(), getTopInset(), QQuickItem::height, QQuickItem::parentItem(), qFuzzyIsNull(), resizingBackground, QQuickItem::setHeight(), QQuickItem::setWidth(), QQuickItem::setX(), QQuickItem::setY(), QQuickItem::width, QQuickItem::x, and QQuickItem::y.

Referenced by detachFlickable(), itemGeometryChanged(), and resizeFlickableControl().

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

◆ resizeFlickableContent()

void QQuickTextAreaPrivate::resizeFlickableContent ( )

Definition at line 364 of file qquicktextarea.cpp.

References flickable, QQuickFlickable::setContentHeight(), and QQuickFlickable::setContentWidth().

Referenced by attachFlickable(), and detachFlickable().

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

◆ resizeFlickableControl()

void QQuickTextAreaPrivate::resizeFlickableControl ( )

Definition at line 351 of file qquicktextarea.cpp.

References QQuickFlickable::contentHeight, QQuickFlickable::contentWidth, flickable, QQuickItem::height, QQuickTextEdit::NoWrap, qMax(), resizeBackground(), QQuickItem::width, and QQuickTextEditPrivate::wrapMode.

Referenced by attachFlickable(), detachFlickable(), and itemGeometryChanged().

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

◆ resolveFont()

void QQuickTextAreaPrivate::resolveFont ( )

Determine which font is implicitly imposed on this control by its ancestors and QGuiApplication::font, resolve this against its own font (attributes from the implicit font are copied over). Then propagate this font to this control's children.

Definition at line 217 of file qquicktextarea.cpp.

References inheritFont(), and QQuickControlPrivate::parentFont().

+ Here is the call graph for this function:

◆ setBottomInset()

void QQuickTextAreaPrivate::setBottomInset ( qreal value,
bool reset = false )

Definition at line 166 of file qquicktextarea.cpp.

References emit, extra, getInset(), and qFuzzyCompare().

+ Here is the call graph for this function:

◆ setFont_helper()

void QQuickTextAreaPrivate::setFont_helper ( const QFont & font)
inline

Definition at line 60 of file qquicktextarea_p_p.h.

References QQuickTextEditPrivate::font, QFont::resolveMask(), QQuickTextEditPrivate::sourceFont, and updateFont().

Referenced by inheritFont().

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

◆ setLeftInset()

void QQuickTextAreaPrivate::setLeftInset ( qreal value,
bool reset = false )

Definition at line 142 of file qquicktextarea.cpp.

References emit, extra, getInset(), and qFuzzyCompare().

+ Here is the call graph for this function:

◆ setRightInset()

void QQuickTextAreaPrivate::setRightInset ( qreal value,
bool reset = false )

Definition at line 154 of file qquicktextarea.cpp.

References emit, extra, getInset(), and qFuzzyCompare().

+ Here is the call graph for this function:

◆ setTopInset()

void QQuickTextAreaPrivate::setTopInset ( qreal value,
bool reset = false )

Definition at line 130 of file qquicktextarea.cpp.

References emit, extra, getInset(), and qFuzzyCompare().

+ Here is the call graph for this function:

◆ updateFont()

void QQuickTextAreaPrivate::updateFont ( const QFont & font)

Assign font to this control, and propagate it to all children.

Definition at line 239 of file qquicktextarea.cpp.

References emit, QQuickTextEditPrivate::font, QQuickTextEditPrivate::sourceFont, and QQuickControlPrivate::updateFontRecur().

Referenced by setFont_helper().

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

Member Data Documentation

◆ background

◆ extra

◆ flickable

◆ placeholder

QString QQuickTextAreaPrivate::placeholder

Definition at line 123 of file qquicktextarea_p_p.h.

◆ placeholderColor

QColor QQuickTextAreaPrivate::placeholderColor

Definition at line 124 of file qquicktextarea_p_p.h.

◆ pressHandler

QQuickPressHandler QQuickTextAreaPrivate::pressHandler

Definition at line 125 of file qquicktextarea_p_p.h.

◆ resizingBackground

bool QQuickTextAreaPrivate::resizingBackground = false

Definition at line 120 of file qquicktextarea_p_p.h.

Referenced by itemGeometryChanged(), and resizeBackground().

◆ resolvedPalette

QPalette QQuickTextAreaPrivate::resolvedPalette

Definition at line 121 of file qquicktextarea_p_p.h.


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