![]() |
Qt 6.x
The Qt SDK
|
#include <qquicktextarea_p_p.h>
Inheritance diagram for QQuickTextAreaPrivate:
Collaboration diagram for QQuickTextAreaPrivate:Classes | |
| struct | ExtraData |
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 () |
Definition at line 35 of file qquicktextarea_p_p.h.
| QQuickTextAreaPrivate::QQuickTextAreaPrivate | ( | ) |
Multi-line text input area.
\qmltype TextArea \inherits TextEdit
! \instantiates QQuickTextArea \inqmlmodule QtQuick.Controls
TextArea is a multi-line text editor. TextArea extends TextEdit with a \l {placeholderText}{placeholder text} functionality, and adds decoration.
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 | ( | ) |
Definition at line 129 of file qquicktextarea.cpp.
| void QQuickTextAreaPrivate::attachFlickable | ( | QQuickFlickable * | flickable | ) |
Definition at line 274 of file qquicktextarea.cpp.
References QQuickItemPrivate::addItemChangeListener(), background, QObject::connect(), QObjectPrivate::connect(), QQuickFlickable::contentHeightChanged(), QQuickFlickable::contentItem, QQuickTextEdit::contentSizeChanged(), QQuickFlickable::contentWidthChanged(), QQuickFlickable::contentXChanged(), QQuickFlickable::contentYChanged(), QQuickTextEdit::cursorRectangleChanged(), QQuickItemPrivate::Destroyed, ensureCursorVisible(), flickable, QQuickItemPrivate::get(), item, resizeFlickableContent(), resizeFlickableControl(), QGraphicsItem::setParentItem(), QQuickItem::setParentItem(), QQuickGeometryChange::Size, QQuickItem::update(), and QQuickItemPrivate::updateOrAddGeometryChangeListener().
Referenced by QQuickTextAreaAttached::setFlickable().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQuickTextAreaPrivate::cancelBackground | ( | ) |
Definition at line 452 of file qquicktextarea.cpp.
References backgroundName(), and quickCancelDeferred().
Here is the call graph for this function:
|
overridevirtual |
The default palette for this component.
Reimplemented from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate >.
Definition at line 496 of file qquicktextarea.cpp.
References QQuickTheme::palette(), and QQuickTheme::TextArea.
Here is the call graph for this function:| void QQuickTextAreaPrivate::detachFlickable | ( | ) |
Definition at line 297 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(), QQuickItemPrivate::removeItemChangeListener(), resizeBackground(), resizeFlickableContent(), resizeFlickableControl(), QQuickItem::setParentItem(), QQuickItem::update(), and QQuickItemPrivate::updateOrRemoveGeometryChangeListener().
Referenced by itemDestroyed(), and QQuickTextAreaAttached::setFlickable().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQuickTextAreaPrivate::ensureCursorVisible | ( | ) |
Definition at line 320 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:Definition at line 458 of file qquicktextarea.cpp.
References background, backgroundName(), quickBeginDeferred(), quickCompleteDeferred(), and QQuickUntypedDeferredPointer::wasExecuted().
Here is the call graph for this function:
|
inlinestatic |
Definition at line 46 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:
|
inline |
Definition at line 55 of file qquicktextarea_p_p.h.
References extra.
Referenced by getInset(), and resizeBackground().
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 404 of file qquicktextarea.cpp.
References QQuickItemPrivate::getImplicitHeight().
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 399 of file qquicktextarea.cpp.
References QQuickItemPrivate::getImplicitWidth().
Here is the call graph for this function:
|
inline |
Definition at line 51 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:
|
inline |
Definition at line 53 of file qquicktextarea_p_p.h.
References extra.
Referenced by getInset(), and resizeBackground().
Here is the caller graph for this function:
|
inline |
Definition at line 54 of file qquicktextarea_p_p.h.
References extra.
Referenced by getInset(), and resizeBackground().
Here is the caller graph for this function:
|
inline |
Definition at line 52 of file qquicktextarea_p_p.h.
References extra.
Referenced by getInset(), and resizeBackground().
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 416 of file qquicktextarea.cpp.
References emit, and QQuickItemPrivate::implicitHeightChanged().
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 409 of file qquicktextarea.cpp.
References emit, and QQuickItemPrivate::implicitWidthChanged().
Here is the call graph for this function:Definition at line 229 of file qquicktextarea.cpp.
References extra, QQuickTextEditPrivate::font, QQuickTheme::font(), QFont::resolve(), QFont::resolveMask(), setFont_helper(), QFont::setResolveMask(), and QQuickTheme::TextArea.
Referenced by resolveFont(), and QQuickControlPrivate::updateFontRecur().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 484 of file qquicktextarea.cpp.
References background, detachFlickable(), emit, flickable, and item.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 380 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:
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 477 of file qquicktextarea.cpp.
References background, emit, and item.
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 470 of file qquicktextarea.cpp.
References background, emit, and item.
| void QQuickTextAreaPrivate::readOnlyChanged | ( | bool | isReadOnly | ) |
Definition at line 423 of file qquicktextarea.cpp.
References Q_UNUSED.
Referenced by QQuickTextArea::QQuickTextArea().
Here is the caller graph for this function:| void QQuickTextAreaPrivate::resizeBackground | ( | ) |
Definition at line 184 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:| void QQuickTextAreaPrivate::resizeFlickableContent | ( | ) |
Definition at line 370 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:| void QQuickTextAreaPrivate::resizeFlickableControl | ( | ) |
Definition at line 357 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:| 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 223 of file qquicktextarea.cpp.
References inheritFont(), and QQuickControlPrivate::parentFont().
Here is the call graph for this function:Definition at line 172 of file qquicktextarea.cpp.
References QMarginsF::bottom(), emit, extra, getInset(), and qFuzzyCompare().
Here is the call graph for this function:Definition at line 67 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:Definition at line 148 of file qquicktextarea.cpp.
References emit, extra, getInset(), QMarginsF::left(), and qFuzzyCompare().
Here is the call graph for this function:Definition at line 160 of file qquicktextarea.cpp.
References emit, extra, getInset(), qFuzzyCompare(), and QMarginsF::right().
Here is the call graph for this function:Definition at line 136 of file qquicktextarea.cpp.
References emit, extra, getInset(), qFuzzyCompare(), and QMarginsF::top().
Here is the call graph for this function:Assign font to this control, and propagate it to all children.
Definition at line 245 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:| QQuickDeferredPointer<QQuickItem> QQuickTextAreaPrivate::background |
Definition at line 130 of file qquicktextarea_p_p.h.
Referenced by attachFlickable(), detachFlickable(), executeBackground(), itemDestroyed(), itemGeometryChanged(), itemImplicitHeightChanged(), itemImplicitWidthChanged(), and resizeBackground().
| QLazilyAllocated<ExtraData> QQuickTextAreaPrivate::extra |
Definition at line 126 of file qquicktextarea_p_p.h.
Referenced by getBottomInset(), getLeftInset(), getRightInset(), getTopInset(), inheritFont(), itemGeometryChanged(), resizeBackground(), setBottomInset(), setLeftInset(), setRightInset(), and setTopInset().
| QQuickFlickable* QQuickTextAreaPrivate::flickable = nullptr |
Definition at line 135 of file qquicktextarea_p_p.h.
Referenced by attachFlickable(), detachFlickable(), ensureCursorVisible(), itemDestroyed(), itemGeometryChanged(), resizeBackground(), resizeFlickableContent(), and resizeFlickableControl().
| Qt::FocusReason QQuickTextAreaPrivate::focusReason = Qt::OtherFocusReason |
Definition at line 133 of file qquicktextarea_p_p.h.
| QString QQuickTextAreaPrivate::placeholder |
Definition at line 131 of file qquicktextarea_p_p.h.
| QColor QQuickTextAreaPrivate::placeholderColor |
Definition at line 132 of file qquicktextarea_p_p.h.
| QQuickPressHandler QQuickTextAreaPrivate::pressHandler |
Definition at line 134 of file qquicktextarea_p_p.h.
| bool QQuickTextAreaPrivate::resizingBackground = false |
Definition at line 128 of file qquicktextarea_p_p.h.
Referenced by itemGeometryChanged(), and resizeBackground().
| QPalette QQuickTextAreaPrivate::resolvedPalette |
Definition at line 129 of file qquicktextarea_p_p.h.