![]() |
Qt 6.x
The Qt SDK
|
#include <qquicktextarea_p_p.h>
Classes | |
struct | ExtraData |
Additional Inherited Members | |
![]() | |
enum | UpdateType { UpdateNone , UpdateOnlyPreprocess , UpdatePaintNode , UpdateAll } |
typedef QQuickTextEdit | Public |
typedef QList< Node >::iterator | TextNodeIterator |
![]() | |
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 } |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
![]() | |
static const int | largeTextSizeThreshold = QQUICKTEXT_LARGETEXT_THRESHOLD |
![]() | |
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().
void QQuickTextAreaPrivate::cancelBackground | ( | ) |
Definition at line 452 of file qquicktextarea.cpp.
References backgroundName(), and quickCancelDeferred().
|
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.
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().
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().
Definition at line 458 of file qquicktextarea.cpp.
References background, backgroundName(), quickBeginDeferred(), quickCompleteDeferred(), and QQuickUntypedDeferredPointer::wasExecuted().
|
inlinestatic |
Definition at line 46 of file qquicktextarea_p_p.h.
References QObjectPrivate::get(), and item.
Referenced by QQuickTextAreaAttached::setFlickable(), and QQuickControlPrivate::updateFontRecur().
|
inline |
Definition at line 55 of file qquicktextarea_p_p.h.
References extra.
Referenced by getInset(), and resizeBackground().
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 404 of file qquicktextarea.cpp.
References QQuickItemPrivate::getImplicitHeight().
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 399 of file qquicktextarea.cpp.
References QQuickItemPrivate::getImplicitWidth().
|
inline |
Definition at line 51 of file qquicktextarea_p_p.h.
References getBottomInset(), getLeftInset(), getRightInset(), and getTopInset().
Referenced by setBottomInset(), setLeftInset(), setRightInset(), and setTopInset().
|
inline |
Definition at line 53 of file qquicktextarea_p_p.h.
References extra.
Referenced by getInset(), and resizeBackground().
|
inline |
Definition at line 54 of file qquicktextarea_p_p.h.
References extra.
Referenced by getInset(), and resizeBackground().
|
inline |
Definition at line 52 of file qquicktextarea_p_p.h.
References extra.
Referenced by getInset(), and resizeBackground().
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 416 of file qquicktextarea.cpp.
References emit, and QQuickItemPrivate::implicitHeightChanged().
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 409 of file qquicktextarea.cpp.
References emit, and QQuickItemPrivate::implicitWidthChanged().
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().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 484 of file qquicktextarea.cpp.
References background, detachFlickable(), emit, flickable, and item.
|
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().
|
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().
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().
void QQuickTextAreaPrivate::resizeFlickableContent | ( | ) |
Definition at line 370 of file qquicktextarea.cpp.
References flickable, QQuickFlickable::setContentHeight(), and QQuickFlickable::setContentWidth().
Referenced by attachFlickable(), and detachFlickable().
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().
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().
Definition at line 172 of file qquicktextarea.cpp.
References QMarginsF::bottom(), emit, extra, getInset(), and qFuzzyCompare().
Definition at line 67 of file qquicktextarea_p_p.h.
References QQuickTextEditPrivate::font, QFont::resolveMask(), QQuickTextEditPrivate::sourceFont, and updateFont().
Referenced by inheritFont().
Definition at line 148 of file qquicktextarea.cpp.
References emit, extra, getInset(), QMarginsF::left(), and qFuzzyCompare().
Definition at line 160 of file qquicktextarea.cpp.
References emit, extra, getInset(), qFuzzyCompare(), and QMarginsF::right().
Definition at line 136 of file qquicktextarea.cpp.
References emit, extra, getInset(), qFuzzyCompare(), and QMarginsF::top().
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().
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.