![]() |
Qt 6.x
The Qt SDK
|
#include <qquicktextfield_p_p.h>
Classes | |
struct | ExtraData |
Additional Inherited Members | |
![]() | |
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 |
![]() | |
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 > |
![]() | |
void | setCurrentColorGroup () |
Definition at line 33 of file qquicktextfield_p_p.h.
QQuickTextFieldPrivate::QQuickTextFieldPrivate | ( | ) |
Single-line text input field.
\qmltype TextField \inherits TextInput
! \instantiates QQuickTextField \inqmlmodule QtQuick.Controls
TextField is a single line text editor. TextField extends TextInput with a \l {placeholderText}{placeholder text} functionality, and adds decoration.
\table \row
\qmlsignal QtQuick.Controls::TextField::pressAndHold(MouseEvent event)
This signal is emitted when there is a long press (the delay depends on the platform plugin). The event parameter provides information about the press, including the x and y coordinates of the press, and which button is pressed.
\qmlsignal QtQuick.Controls::TextField::pressed(MouseEvent event)
This signal is emitted when the text field is pressed by the user. The event parameter provides information about the press, including the x and y coordinates of the press, and which button is pressed.
\qmlsignal QtQuick.Controls::TextField::released(MouseEvent event)
This signal is emitted when the text field is released by the user. The event parameter provides information about the release, including the x and y coordinates of the press, and which button is pressed.
Definition at line 86 of file qquicktextfield.cpp.
QQuickTextFieldPrivate::~QQuickTextFieldPrivate | ( | ) |
Definition at line 93 of file qquicktextfield.cpp.
void QQuickTextFieldPrivate::cancelBackground | ( | ) |
Definition at line 303 of file qquicktextfield.cpp.
References backgroundName(), and quickCancelDeferred().
|
overridevirtual |
The default palette for this component.
Reimplemented from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate >.
Definition at line 362 of file qquicktextfield.cpp.
References QQuickTheme::palette(), and QQuickTheme::TextField.
void QQuickTextFieldPrivate::echoModeChanged | ( | QQuickTextField::EchoMode | echoMode | ) |
Definition at line 272 of file qquicktextfield.cpp.
References QQuickTextInput::Password, QQuickTextInput::PasswordEchoOnEdit, and Q_UNUSED.
Referenced by QQuickTextField::QQuickTextField().
Definition at line 309 of file qquicktextfield.cpp.
References background, backgroundName(), quickBeginDeferred(), quickCompleteDeferred(), and QQuickUntypedDeferredPointer::wasExecuted().
|
inlinestatic |
Definition at line 44 of file qquicktextfield_p_p.h.
References QObjectPrivate::get(), and item.
Referenced by QQuickControlPrivate::updateFontRecur().
|
inline |
Definition at line 51 of file qquicktextfield_p_p.h.
References extra.
Referenced by getInset(), and resizeBackground().
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 241 of file qquicktextfield.cpp.
References QQuickItemPrivate::getImplicitHeight().
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 236 of file qquicktextfield.cpp.
References QQuickItemPrivate::getImplicitWidth().
|
inline |
Definition at line 47 of file qquicktextfield_p_p.h.
References getBottomInset(), getLeftInset(), getRightInset(), and getTopInset().
Referenced by setBottomInset(), setLeftInset(), setRightInset(), and setTopInset().
|
inline |
Definition at line 49 of file qquicktextfield_p_p.h.
References extra.
Referenced by getInset(), and resizeBackground().
|
inline |
Definition at line 50 of file qquicktextfield_p_p.h.
References extra.
Referenced by getInset(), and resizeBackground().
|
inline |
Definition at line 48 of file qquicktextfield_p_p.h.
References extra.
Referenced by getInset(), and resizeBackground().
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 253 of file qquicktextfield.cpp.
References emit, and QQuickItemPrivate::implicitHeightChanged().
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 246 of file qquicktextfield.cpp.
References emit, and QQuickItemPrivate::implicitWidthChanged().
Definition at line 191 of file qquicktextfield.cpp.
References extra, QQuickTextInputPrivate::font, QQuickTheme::font(), QFont::resolve(), QFont::resolveMask(), setFont_helper(), QFont::setResolveMask(), and QQuickTheme::TextField.
Referenced by resolveFont(), and QQuickControlPrivate::updateFontRecur().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 352 of file qquicktextfield.cpp.
References background, emit, and item.
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 321 of file qquicktextfield.cpp.
References background, extra, QQuickItemPrivate::get(), item, Q_UNUSED, resizeBackground(), resizingBackground, and QQuickGeometryChange::sizeChange().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 345 of file qquicktextfield.cpp.
References background, emit, and item.
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 338 of file qquicktextfield.cpp.
References background, emit, and item.
void QQuickTextFieldPrivate::readOnlyChanged | ( | bool | isReadOnly | ) |
Definition at line 260 of file qquicktextfield.cpp.
References Qt::ArrowCursor, Qt::IBeamCursor, Q_UNUSED, and QQuickTextInputPrivate::selectByMouse.
Referenced by QQuickTextField::QQuickTextField().
void QQuickTextFieldPrivate::resizeBackground | ( | ) |
Definition at line 148 of file qquicktextfield.cpp.
References background, extra, QQuickItemPrivate::get(), getBottomInset(), getLeftInset(), getRightInset(), getTopInset(), qFuzzyIsNull(), resizingBackground, QQuickItem::setHeight(), QQuickItem::setWidth(), QQuickItem::setX(), QQuickItem::setY(), QQuickItem::x, and QQuickItem::y.
Referenced by itemGeometryChanged().
void QQuickTextFieldPrivate::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 185 of file qquicktextfield.cpp.
References inheritFont(), and QQuickControlPrivate::parentFont().
Definition at line 136 of file qquicktextfield.cpp.
References QMarginsF::bottom(), emit, extra, getInset(), and qFuzzyCompare().
Definition at line 63 of file qquicktextfield_p_p.h.
References QQuickTextInputPrivate::font, QFont::resolveMask(), QQuickTextInputPrivate::sourceFont, and updateFont().
Referenced by inheritFont().
Definition at line 112 of file qquicktextfield.cpp.
References emit, extra, getInset(), QMarginsF::left(), and qFuzzyCompare().
Definition at line 124 of file qquicktextfield.cpp.
References emit, extra, getInset(), qFuzzyCompare(), and QMarginsF::right().
Definition at line 100 of file qquicktextfield.cpp.
References emit, extra, getInset(), qFuzzyCompare(), and QMarginsF::top().
Assign font to this control, and propagate it to all children.
Definition at line 207 of file qquicktextfield.cpp.
References emit, QQuickTextInputPrivate::font, QQuickTextInputPrivate::sourceFont, and QQuickControlPrivate::updateFontRecur().
Referenced by setFont_helper().
QQuickDeferredPointer<QQuickItem> QQuickTextFieldPrivate::background |
Definition at line 118 of file qquicktextfield_p_p.h.
Referenced by executeBackground(), itemDestroyed(), itemGeometryChanged(), itemImplicitHeightChanged(), itemImplicitWidthChanged(), and resizeBackground().
QLazilyAllocated<ExtraData> QQuickTextFieldPrivate::extra |
Definition at line 115 of file qquicktextfield_p_p.h.
Referenced by getBottomInset(), getLeftInset(), getRightInset(), getTopInset(), inheritFont(), itemGeometryChanged(), resizeBackground(), setBottomInset(), setLeftInset(), setRightInset(), and setTopInset().
Qt::FocusReason QQuickTextFieldPrivate::focusReason = Qt::OtherFocusReason |
Definition at line 121 of file qquicktextfield_p_p.h.
QString QQuickTextFieldPrivate::placeholder |
Definition at line 119 of file qquicktextfield_p_p.h.
QColor QQuickTextFieldPrivate::placeholderColor |
Definition at line 120 of file qquicktextfield_p_p.h.
QQuickPressHandler QQuickTextFieldPrivate::pressHandler |
Definition at line 122 of file qquicktextfield_p_p.h.
bool QQuickTextFieldPrivate::resizingBackground = false |
Definition at line 117 of file qquicktextfield_p_p.h.
Referenced by itemGeometryChanged(), and resizeBackground().