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>.
|
#include <qquicktextarea_p_p.h>
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 31 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 126 of file qquicktextarea.cpp.
void QQuickTextAreaPrivate::attachFlickable | ( | QQuickFlickable * | flickable | ) |
Definition at line 268 of file qquicktextarea.cpp.
References 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, and QQuickItem::update().
void QQuickTextAreaPrivate::cancelBackground | ( | ) |
Definition at line 426 of file qquicktextarea.cpp.
References backgroundName(), and quickCancelDeferred().
|
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.
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().
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().
Definition at line 432 of file qquicktextarea.cpp.
References background, backgroundName(), quickBeginDeferred(), quickCompleteDeferred(), and QQuickUntypedDeferredPointer::wasExecuted().
Referenced by QQuickTextArea::background().
|
inlinestatic |
Definition at line 39 of file qquicktextarea_p_p.h.
References QObjectPrivate::get(), and item.
Referenced by QQuickTextAreaAttached::setFlickable(), and QQuickControlPrivate::updateFontRecur().
|
inline |
Definition at line 48 of file qquicktextarea_p_p.h.
References extra.
Referenced by getInset(), and resizeBackground().
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 398 of file qquicktextarea.cpp.
References QQuickItemPrivate::getImplicitHeight().
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 393 of file qquicktextarea.cpp.
References QQuickItemPrivate::getImplicitWidth().
|
inline |
Definition at line 44 of file qquicktextarea_p_p.h.
References getBottomInset(), getLeftInset(), getRightInset(), and getTopInset().
Referenced by setBottomInset(), setLeftInset(), setRightInset(), and setTopInset().
|
inline |
Definition at line 46 of file qquicktextarea_p_p.h.
References extra.
Referenced by getInset(), and resizeBackground().
|
inline |
Definition at line 47 of file qquicktextarea_p_p.h.
References extra.
Referenced by getInset(), and resizeBackground().
|
inline |
Definition at line 45 of file qquicktextarea_p_p.h.
References extra.
Referenced by getInset(), and resizeBackground().
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 410 of file qquicktextarea.cpp.
References emit, and QQuickItemPrivate::implicitHeightChanged().
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 403 of file qquicktextarea.cpp.
References emit, and QQuickItemPrivate::implicitWidthChanged().
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().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 458 of file qquicktextarea.cpp.
References background, detachFlickable(), emit, flickable, and item.
|
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().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 451 of file qquicktextarea.cpp.
References background, emit, and item.
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 444 of file qquicktextarea.cpp.
References background, emit, and item.
void QQuickTextAreaPrivate::readOnlyChanged | ( | bool | isReadOnly | ) |
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().
void QQuickTextAreaPrivate::resizeFlickableContent | ( | ) |
Definition at line 364 of file qquicktextarea.cpp.
References flickable, QQuickFlickable::setContentHeight(), and QQuickFlickable::setContentWidth().
Referenced by attachFlickable(), and detachFlickable().
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().
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().
Definition at line 166 of file qquicktextarea.cpp.
References emit, extra, getInset(), and qFuzzyCompare().
Definition at line 60 of file qquicktextarea_p_p.h.
References QQuickTextEditPrivate::font, QFont::resolveMask(), QQuickTextEditPrivate::sourceFont, and updateFont().
Referenced by inheritFont().
Definition at line 142 of file qquicktextarea.cpp.
References emit, extra, getInset(), and qFuzzyCompare().
Definition at line 154 of file qquicktextarea.cpp.
References emit, extra, getInset(), and qFuzzyCompare().
Definition at line 130 of file qquicktextarea.cpp.
References emit, extra, getInset(), and qFuzzyCompare().
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().
QQuickDeferredPointer<QQuickItem> QQuickTextAreaPrivate::background |
Definition at line 122 of file qquicktextarea_p_p.h.
Referenced by attachFlickable(), detachFlickable(), executeBackground(), itemDestroyed(), itemGeometryChanged(), itemImplicitHeightChanged(), itemImplicitWidthChanged(), and resizeBackground().
QLazilyAllocated<ExtraData> QQuickTextAreaPrivate::extra |
Definition at line 118 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 126 of file qquicktextarea_p_p.h.
Referenced by attachFlickable(), detachFlickable(), ensureCursorVisible(), itemDestroyed(), itemGeometryChanged(), resizeBackground(), resizeFlickableContent(), and resizeFlickableControl().
QString QQuickTextAreaPrivate::placeholder |
Definition at line 123 of file qquicktextarea_p_p.h.
QColor QQuickTextAreaPrivate::placeholderColor |
Definition at line 124 of file qquicktextarea_p_p.h.
QQuickPressHandler QQuickTextAreaPrivate::pressHandler |
Definition at line 125 of file qquicktextarea_p_p.h.
bool QQuickTextAreaPrivate::resizingBackground = false |
Definition at line 120 of file qquicktextarea_p_p.h.
Referenced by itemGeometryChanged(), and resizeBackground().
QPalette QQuickTextAreaPrivate::resolvedPalette |
Definition at line 121 of file qquicktextarea_p_p.h.