![]() |
Qt 6.x
The Qt SDK
|
#include <qquickitem_p.h>
Classes | |
struct | ChangeListener |
struct | ExtraData |
Public Types | |
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 > |
Additional Inherited Members | |
![]() | |
void | setCurrentColorGroup () |
Definition at line 220 of file qquickitem_p.h.
Enumerator | |
---|---|
Geometry | |
SiblingOrder | |
Visibility | |
Opacity | |
Destroyed | |
Parent | |
Children | |
Rotation | |
ImplicitWidth | |
ImplicitHeight | |
Enabled | |
Focus | |
AllChanges |
Definition at line 298 of file qquickitem_p.h.
Definition at line 495 of file qquickitem_p.h.
Enumerator | |
---|---|
NoTag | |
LeftMouseButtonAccepted |
Definition at line 416 of file qquickitem_p.h.
QQuickItemPrivate::QQuickItemPrivate | ( | ) |
Definition at line 3157 of file qquickitem.cpp.
|
override |
Definition at line 3219 of file qquickitem.cpp.
References childItems, and sortedChildItems.
quint64 QQuickItemPrivate::_q_createJSWrapper | ( | QV4::ExecutionEngine * | engine | ) |
Definition at line 9839 of file qquickitem.cpp.
References engine.
Definition at line 3571 of file qquickitem.cpp.
References extra.
Referenced by addPointerHandler(), resources_append(), resources_clear(), and resources_removeLast().
QQuickStateGroup * QQuickItemPrivate::_states | ( | ) |
Definition at line 5317 of file qquickitem.cpp.
References _stateGroup, QQuickStateGroup::classBegin(), componentComplete, qmlobject_connect, and SIGNAL.
Referenced by QQmlDebugTranslationServicePrivate::sendStateList(), setState(), QQmlDebugTranslationServicePrivate::setState(), states(), QQuickDesignerSupport::statesForItem(), and transitions().
|
inline |
Definition at line 985 of file qquickitem_p.h.
References extra, Qt::LeftButton, and LeftMouseButtonAccepted.
Referenced by QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem(), and QQuickMouseAreaPrivate::propagateHelper().
void QQuickItemPrivate::addChild | ( | QQuickItem * | child | ) |
Definition at line 2903 of file qquickitem.cpp.
References QList< T >::append(), child, childItems, ChildrenChanged, QListSpecialMethodsBase< T >::contains(), dirty(), emit, extra, get(), itemChange(), QQuickItem::ItemChildAddedChange, markSortedChildrenDirty(), Q_ASSERT, recursiveRefFromEffectItem(), setHasCursorInChild(), setHasHoverInChild(), subtreeCursorEnabled, and subtreeHoverEnabled.
Referenced by QQuickItem::setParentItem().
void QQuickItemPrivate::addItemChangeListener | ( | QQuickItemChangeListener * | listener, |
ChangeTypes | types | ||
) |
Definition at line 3964 of file qquickitem.cpp.
References changeListeners, and PRINT_LISTENERS.
Referenced by QQuickOverlay::QQuickOverlay(), QQuickStackViewAttached::QQuickStackViewAttached(), QQuick3DItem2D::addChildItem(), QQuickControlPrivate::addImplicitSizeListener(), QQuickTextAreaPrivate::attachFlickable(), QQuickAttachedPropertyPropagatorPrivate::attachTo(), QQuickContents::complete(), QQuickMenuPrivate::contentData_append(), QQuickContainer::contentItemChange(), QQuickDialogButtonBox::contentItemChange(), QQuickMenu::contentItemChange(), QQuickPageIndicator::contentItemChange(), QQuickRowPrivate::effectiveLayoutDirectionChange(), QQuickGridPrivate::effectiveLayoutDirectionChange(), QQuickPathViewPrivate::getItem(), QQuickListViewPrivate::getSectionItem(), QQuickFlickablePrivate::init(), QQuickContainerPrivate::insertItem(), QQuickMenuPrivate::insertItem(), QQuickLayout::itemChange(), QQuickContents::itemChildAdded(), QQuickControlPrivate::setContentItem_helper(), QQuickPage::setFooter(), QQuickPage::setHeader(), QQuickScrollBarAttached::setHorizontal(), QQuickScrollIndicatorAttached::setHorizontal(), QQuickPopupPositioner::setParentItem(), QQuick3DTexture::setSourceItem(), QQuickTumblerPrivate::setupViewData(), QQuickScrollBarAttached::setVertical(), QQuickScrollIndicatorAttached::setVertical(), QQuickDragAttachedPrivate::start(), QQuickItemViewFxItem::trackGeometry(), QQuickItemGroup::watch(), QQuickIconLabelPrivate::watchChanges(), QQuickBasePositionerPrivate::watchChanges(), and QQuickActionPrivate::watchItem().
|
virtual |
Reimplemented in QQuickFlickablePrivate.
Definition at line 9188 of file qquickitem.cpp.
References _q_resourceObjectDeleted(), Qt::AllButtons, QObject::connect(), QObject::destroyed(), extra, o, and Q_ASSERT.
Referenced by QQuickPointerHandler::QQuickPointerHandler(), QQuickFlickablePrivate::addPointerHandler(), data_append(), qquickitem_autoParent(), and QQuickPointerHandler::setParentItem().
void QQuickItemPrivate::addToDirtyList | ( | ) |
Definition at line 6653 of file qquickitem.cpp.
References get(), QQuickWindowPrivate::get(), nextDirtyItem, prevDirtyItem, Q_ASSERT, and window.
Referenced by dirty().
QPointF QQuickItemPrivate::adjustedPosForTransform | ( | const QPointF & | centroidParentPos, |
const QPointF & | startPos, | ||
const QVector2D & | activeTranslation, | ||
qreal | startScale, | ||
qreal | activeScale, | ||
qreal | startRotation, | ||
qreal | activeRotation | ||
) |
Returns the new position (proposed values for the x and y properties) to which this item should be moved to compensate for the given change in scale from startScale to activeScale and in rotation from startRotation to activeRotation. centroidParentPos is the point that we wish to hold in place (and then apply activeTranslation to), in this item's parent's coordinate system. startPos is this item's position in its parent's coordinate system when the gesture began. activeTranslation is the amount of translation that should be added to the return value, i.e. the displacement by which the centroid is expected to move.
If activeTranslation is (0, 0) the centroid is to be held in place. If activeScale is
1
, it means scale is intended to be held constant, the same as startScale. If activeRotation is 0
, it means rotation is intended to be held constant, the same as startRotation.
Definition at line 5418 of file qquickitem.cpp.
References QMatrix4x4::map(), pos, QMatrix4x4::rotate(), QMatrix4x4::scale(), QMatrix4x4::translate(), QPointF::x(), and QPointF::y().
Referenced by QQuickWheelHandler::handleEventPoint(), and QQuickPinchHandler::handlePointerEventImpl().
QQuickAnchors * QQuickItemPrivate::anchors | ( | ) | 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
\qmlproperty Item QtQuick::Item::anchors.fill \qmlproperty Item QtQuick::Item::anchors.centerIn
\qmlproperty real QtQuick::Item::anchors.margins \qmlproperty real QtQuick::Item::anchors.topMargin \qmlproperty real QtQuick::Item::anchors.bottomMargin \qmlproperty real QtQuick::Item::anchors.leftMargin \qmlproperty real QtQuick::Item::anchors.rightMargin \qmlproperty real QtQuick::Item::anchors.horizontalCenterOffset \qmlproperty real QtQuick::Item::anchors.verticalCenterOffset \qmlproperty real QtQuick::Item::anchors.baselineOffset
\qmlproperty bool QtQuick::Item::anchors.alignWhenCentered
Anchors provide a way to position an item by specifying its relationship with other items.
Margins apply to top, bottom, left, right, and fill anchors. The \l anchors.margins property can be used to set all of the various margins at once, to the same value. It will not override a specific margin that has been previously set; to clear an explicit margin set its value to undefined
. Note that margins are anchor-specific and are not applied if an item does not use anchors.
Offsets apply for horizontal center, vertical center, and baseline anchors.
\table \row
\qml Item { Image { id: pic ... } Text { id: label anchors.left: pic.right anchors.leftMargin: 5 ... } } \endqml \endtable
\l anchors.fill provides a convenient way for one item to have the same geometry as another item, and is equivalent to connecting all four directional anchors.
To clear an anchor value, set it to undefined
.
\l anchors.alignWhenCentered (default true
) forces centered anchors to align to a whole pixel; if the item being centered has an odd \l width or \l height, the item will be positioned on a whole pixel rather than being placed on a half-pixel. This ensures the item is painted crisply. There are cases where this is not desirable, for example when rotating the item jitters may be apparent as the center is rounded.
For more information see \l {anchor-layout}{Anchor Layouts}.
Definition at line 3671 of file qquickitem.cpp.
References _anchors, QQuickAnchors::classBegin(), and componentComplete.
Referenced by anchors(), QQuickAnchorChanges::clearBindings(), QQuickTableViewPrivate::createFxTableItem(), QQuickAnchorChanges::execute(), QQuickDesignerSupport::isAnchoredTo(), QQuickSwipeViewPrivate::resizeItems(), QQuickAnchorChanges::reverse(), and QQuickAnchorChanges::saveCurrentValues().
bool QQuickItemPrivate::anyPointerHandlerWants | ( | const QPointerEvent * | event, |
const QEventPoint & | point | ||
) | const |
Definition at line 5623 of file qquickitem.cpp.
References extra, and hasPointerHandlers().
QQuickAnchorLine QQuickItemPrivate::baseline | ( | ) | const |
Definition at line 4440 of file qquickitem.cpp.
References QQuickAnchors::BaselineAnchor.
Referenced by QQuickTextPrivate::setupTextLayout(), QQuickTextPrivate::updateBaseline(), and QQuickTextPrivate::updateSize().
QQuickAnchorLine QQuickItemPrivate::bottom | ( | ) | const |
Definition at line 4428 of file qquickitem.cpp.
References QQuickAnchors::BottomAnchor.
bool QQuickItemPrivate::calcEffectiveEnable | ( | ) | const |
Definition at line 6536 of file qquickitem.cpp.
References effectiveEnable, explicitEnable, get(), and parentItem.
bool QQuickItemPrivate::calcEffectiveVisible | ( | ) | const |
Definition at line 6488 of file qquickitem.cpp.
References effectiveVisible, explicitVisible, get(), and parentItem.
Referenced by setVisible().
|
static |
Definition at line 2370 of file qquickitem.cpp.
References get(), QVariant::isValid(), item, QVariant::toBool(), and QGraphicsItem::window().
Referenced by nextPrevItemInTabFocusChain().
|
inline |
Definition at line 1033 of file qquickitem_p.h.
References clipNode(), itemNode(), opacityNode(), and rootNode().
Referenced by QQuickWindowPrivate::updateDirtyNode().
QQmlListProperty< QQuickItem > QQuickItemPrivate::children | ( | ) |
Definition at line 5073 of file qquickitem.cpp.
References children_append(), children_at(), children_clear(), children_count(), and children_removeLast().
Referenced by QQuickScrollViewPrivate::contentChildren_append(), QQuickScrollViewPrivate::contentChildren_at(), QQuickScrollViewPrivate::contentChildren_clear(), QQuickScrollViewPrivate::contentChildren_count(), data_at(), data_clear(), data_count(), data_removeLast(), nextTabChildItem(), prevTabChildItem(), QQuickMouseAreaPrivate::propagateHelper(), QQuickOverlayPrivate::stackingOrderPopups(), and QQuickTableViewPrivate::updateTableRecursive().
|
static |
Definition at line 3428 of file qquickitem.cpp.
References o, and QQmlListProperty< T >::object.
Referenced by children(), QQuickPanePrivate::contentChildren(), and QQuickPopupPrivate::contentChildren().
|
static |
Definition at line 3419 of file qquickitem.cpp.
References get(), and QQmlListProperty< T >::object.
Referenced by children(), QQuickPanePrivate::contentChildren(), QQuickPopupPrivate::contentChildren(), and data_at().
|
static |
Definition at line 3446 of file qquickitem.cpp.
References get(), and QQmlListProperty< T >::object.
Referenced by children(), QQuickPanePrivate::contentChildren(), QQuickPopupPrivate::contentChildren(), and data_clear().
|
static |
Definition at line 3440 of file qquickitem.cpp.
References get(), and QQmlListProperty< T >::object.
Referenced by children(), QQuickPanePrivate::contentChildren(), QQuickPopupPrivate::contentChildren(), data_at(), data_count(), and data_removeLast().
|
static |
Definition at line 3454 of file qquickitem.cpp.
References get(), and QQmlListProperty< T >::object.
Referenced by children(), and data_removeLast().
|
inline |
Definition at line 672 of file qquickitem_p.h.
Referenced by childContainerNode(), QQuickWindowPrivate::updateDirtyNode(), and QQuickTextArea::updatePaintNode().
QPointF QQuickItemPrivate::computeTransformOrigin | ( | ) | const |
Definition at line 5331 of file qquickitem.cpp.
References QQuickItem::Bottom, QQuickItem::BottomLeft, QQuickItem::BottomRight, QQuickItem::Center, QQuickItem::Left, origin(), QQuickItem::Right, QQuickItem::Top, QQuickItem::TopLeft, and QQuickItem::TopRight.
Referenced by itemToParentTransform(), and QQuickFlipablePrivate::updateSide().
|
virtual |
Definition at line 3934 of file qquickitem.cpp.
Referenced by itemNode().
QQmlListProperty< QObject > QQuickItemPrivate::data | ( | ) |
Definition at line 3688 of file qquickitem.cpp.
References data_append(), data_at(), data_clear(), data_count(), and data_removeLast().
Referenced by QQuickShapePrivate::asyncShapeReady(), QQuickWindowPrivate::data_append(), QQuickWindowPrivate::data_at(), QQuickWindowPrivate::data_clear(), QQuickWindowPrivate::data_count(), QQuickWindowPrivate::data_removeLast(), QQuickWindowPrivate::data_replace(), and QQuickSplitViewPrivate::effectiveSizeData().
|
static |
Definition at line 3240 of file qquickitem.cpp.
References addPointerHandler(), QObject::connect(), get(), item, o, QQmlListProperty< T >::object, QGraphicsItem::parentItem(), qCDebug, qmlobject_cast< QQuickItem * >(), resources_append(), QObject::setParent(), QGraphicsItem::setParentItem(), SIGNAL, SLOT, QGraphicsItem::window(), and QQuickItem::window().
Referenced by QQuickPanePrivate::contentData(), QQuickPopupPrivate::contentData(), QQuickApplicationWindowPrivate::contentData_append(), data(), ssgn_append(), and vpe_append().
|
static |
Definition at line 3325 of file qquickitem.cpp.
References children(), children_at(), children_count(), get(), i, item, j, resources(), resources_at(), and resources_count().
Referenced by QQuickApplicationWindowPrivate::contentData(), QQuickPanePrivate::contentData(), QQuickPopupPrivate::contentData(), and data().
|
static |
Definition at line 3341 of file qquickitem.cpp.
References children(), children_clear(), get(), item, resources(), and resources_clear().
Referenced by QQuickApplicationWindowPrivate::contentData(), QQuickPanePrivate::contentData(), QQuickPopupPrivate::contentData(), data(), and vpe_clear().
|
static |
\qmlproperty list<QtObject> QtQuick::Item::data \qmldefault
The data property allows you to freely mix visual children and resources in an item. If you assign a visual item to the data list it becomes a child and if you assign any other object type, it is added as a resource.
So you can write: \qml Item { Text {} Rectangle {} Timer {} } \endqml
instead of: \qml Item { children: [ Text {}, Rectangle {} ] resources: [ Timer {} ] } \endqml
It should not generally be necessary to refer to the data
property, as it is the default property for Item and thus all child items are automatically assigned to this property.
Definition at line 3315 of file qquickitem.cpp.
References children(), children_count(), get(), item, resources(), and resources_count().
Referenced by QQuickApplicationWindowPrivate::contentData(), QQuickPanePrivate::contentData(), QQuickPopupPrivate::contentData(), and data().
|
static |
Definition at line 3352 of file qquickitem.cpp.
References children(), children_count(), children_removeLast(), get(), item, resources(), resources_count(), and resources_removeLast().
Referenced by data().
Definition at line 5550 of file qquickitem.cpp.
References Qt::AltModifier, Qt::ControlModifier, e, filterKeyEvent(), focusNextPrev(), Qt::Key_Backtab, Qt::Key_Tab, QEvent::KeyPress, Q_ASSERT, and Qt::ShiftModifier.
Definition at line 5615 of file qquickitem.cpp.
References extra.
QQuickDeliveryAgent * QQuickItemPrivate::deliveryAgent | ( | ) |
Returns the delivery agent for the narrowest subscene containing this item, but falls back to QQuickWindowPrivate::deliveryAgent if there are no subscenes.
If this item is not sure whether it's in a subscene (as by default), we need to explore the parents to find out.
If this item is in a subscene, we will find that DA during the exploration, and return it.
If we find the root item without finding a DA, then we know that this item does NOT belong to a subscene, so we remember that by setting maybeHasSubsceneDeliveryAgent to false, so that exploration of the parents can be avoided next time.
In the usual case in normal 2D scenes without subscenes, maybeHasSubsceneDeliveryAgent gets set to false here.
Definition at line 5474 of file qquickitem.cpp.
References QQuickWindowPrivate::deliveryAgent, get(), QQuickWindowPrivate::get(), maybeHasSubsceneDeliveryAgent, qCDebug, and window.
Referenced by QQuickDeliveryAgentPrivate::currentOrItemDeliveryAgent(), QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem(), and deliveryAgentPrivate().
QQuickDeliveryAgentPrivate * QQuickItemPrivate::deliveryAgentPrivate | ( | ) |
Definition at line 5503 of file qquickitem.cpp.
References deliveryAgent(), and QObjectPrivate::get().
Referenced by QQuickPointerHandler::approveGrabTransition(), QQuickMultiPointTouchArea::childMouseEventFilter(), QQuickTableViewPrivate::releaseItem(), QQuickFlickablePrivate::replayDelayedPress(), setEffectiveEnableRecur(), setEffectiveVisibleRecur(), and QQuickMultiPointTouchArea::updateTouchData().
void QQuickItemPrivate::derefFromEffectItem | ( | bool | unhide | ) |
Definition at line 6714 of file qquickitem.cpp.
References ChildrenStackingChanged, dirty(), EffectReference, extra, get(), HideReference, parentItem, Q_ASSERT, and recursiveRefFromEffectItem().
Referenced by QQuickDesignerSupport::~QQuickDesignerSupport(), QQuickShaderEffectSource::~QQuickShaderEffectSource(), QQuickDesignerSupport::derefFromEffectItem(), QQuickShaderEffectSource::setHideSource(), and QQuick3DTexture::setSourceItem().
void QQuickItemPrivate::derefWindow | ( | ) |
Definition at line 3008 of file qquickitem.cpp.
References QList< T >::at(), child, childItems, derefWindow(), dirty(), extra, get(), QQuickWindowPrivate::get(), itemChange(), itemNodeInstance, QQuickItem::ItemSceneChange, paintNode, parentItem, polishScheduled, Q_ASSERT, removeFromDirtyList(), QList< T >::size(), window, and windowRefCount.
Referenced by QQuickShaderEffectSource::~QQuickShaderEffectSource(), derefWindow(), QQuickShaderEffectPrivate::handleItemChange(), QQuickShaderEffectSource::itemChange(), and QQuickShaderEffectPrivate::propertyChanged().
Definition at line 6638 of file qquickitem.cpp.
References addToDirtyList(), BasicTransform, componentComplete, dirtyAttributes, QQuickWindowPrivate::dirtyItem(), QQuickWindowPrivate::get(), prevDirtyItem, Size, Transform, transformChanged(), TransformOrigin, and window.
Referenced by addChild(), derefFromEffectItem(), derefWindow(), forceUpdate(), refFromEffectItem(), refWindow(), removeChild(), QQuickAnchorChanges::reverse(), QQuickAnchorChanges::rewind(), setCulled(), setEffectiveVisibleRecur(), setVisible(), QQuickItem::setZ(), QQuickItem::stackAfter(), QQuickItem::stackBefore(), QQuickShapePrivate::sync(), transformChanged(), QQuickTextPrivate::transformChanged(), and QQuickHoverHandlerPrivate::updateHasHoverInChild().
QString QQuickItemPrivate::dirtyToString | ( | ) | const |
Definition at line 6605 of file qquickitem.cpp.
References Antialiasing, BasicTransform, ChildrenChanged, ChildrenStackingChanged, Clip, Content, DIRTY_TO_STRING, EffectReference, HideReference, OpacityValue, ParentChanged, Size, Smooth, Transform, TransformOrigin, Visible, and ZValue.
Referenced by QQuickWindowPrivate::updateDirtyNodes().
|
virtual |
Definition at line 5021 of file qquickitem.cpp.
References ch, childItems, extra, get(), and qDebug.
Definition at line 622 of file qquickitem_p.h.
QQuickDeliveryAgent * QQuickItemPrivate::ensureSubsceneDeliveryAgent | ( | ) |
Ensures that this item, presumably the root of a subscene (e.g. because it is mapped onto a 3D object in Qt Quick 3D), has a delivery agent to be used when delivering events to the subscene: i.e. when the viewport delivers an event to the subscene, or when the outer delivery agent delivers an update to an item that grabbed during a previous subscene delivery. Creates a new agent if it was not already created, and returns a pointer to the instance.
Definition at line 5517 of file qquickitem.cpp.
References extra, QQuickItem::ItemIsFocusScope, maybeHasSubsceneDeliveryAgent, and qCDebug.
Referenced by QQuick3DItem2D::QQuick3DItem2D(), and QQuick3DTexture::setSourceItem().
bool QQuickItemPrivate::filterKeyEvent | ( | QKeyEvent * | e, |
bool | post | ||
) |
Definition at line 5534 of file qquickitem.cpp.
References e, extra, and QEvent::KeyPress.
Referenced by deliverKeyEvent().
|
static |
QQuickItemPrivate::focusNextPrev focuses the next/prev item in the tab-focus-chain.
item | The item that currently has the focus |
forward | The direction |
If next is true, the next item visited will be in depth-first order relative to item. If next is false, the next item visited will be in reverse depth-first order relative to item.
Definition at line 2409 of file qquickitem.cpp.
References Qt::BacktabFocusReason, item, next, nextPrevItemInTabFocusChain(), and Qt::TabFocusReason.
Referenced by deliverKeyEvent(), and QQuickPopup::keyPressEvent().
|
inlinestatic |
Definition at line 228 of file qquickitem_p.h.
References item.
|
inlinestatic |
Definition at line 227 of file qquickitem_p.h.
References item.
Referenced by QQuick3DItem2D::QQuick3DItem2D(), QQuickBasicBusyIndicatorNode::QQuickBasicBusyIndicatorNode(), QQuickEnterKeyAttached::QQuickEnterKeyAttached(), QQuickItemKeyFilter::QQuickItemKeyFilter(), QQuickLayoutMirroringAttached::QQuickLayoutMirroringAttached(), QQuickMaterialRippleBackgroundNode::QQuickMaterialRippleBackgroundNode(), QQuickMaterialRippleWaveNode::QQuickMaterialRippleWaveNode(), QQuickOverlay::QQuickOverlay(), QQuickPointerHandler::QQuickPointerHandler(), QQuickScreenAttached::QQuickScreenAttached(), QQuickScrollIndicatorAttached::QQuickScrollIndicatorAttached(), QQuickSplitViewAttached::QQuickSplitViewAttached(), QQuickStackViewAttached::QQuickStackViewAttached(), QQuickUniversalFocusRectangle::QQuickUniversalFocusRectangle(), QQuick3DTexture::~QQuick3DTexture(), QQuickContents::~QQuickContents(), QQuickControl::~QQuickControl(), QQuickDesignerSupport::~QQuickDesignerSupport(), QQuickLayout::~QQuickLayout(), QQuickMenu::~QQuickMenu(), QQuickOverlay::~QQuickOverlay(), QQuickPage::~QQuickPage(), QQuickPageIndicator::~QQuickPageIndicator(), QQuickPointerHandler::~QQuickPointerHandler(), QQuickPopupAnchors::~QQuickPopupAnchors(), QQuickPopupPositioner::~QQuickPopupPositioner(), QQuickScrollBarAttached::~QQuickScrollBarAttached(), QQuickScrollIndicatorAttached::~QQuickScrollIndicatorAttached(), QQuickShaderEffectSource::~QQuickShaderEffectSource(), QQuickStackElement::~QQuickStackElement(), QQuickStackViewAttached::~QQuickStackViewAttached(), QQuickTransform::~QQuickTransform(), QQuickPopupPositioner::addAncestorListeners(), addChild(), QQuick3DItem2D::addChildItem(), QQuickAnchorsPrivate::addDepend(), QQuickDesignerSupport::addDirty(), QQuickTextNode::addGlyphs(), QQuickTextNode::addImage(), QQuickControlPrivate::addImplicitSizeListener(), QQuickFlickablePrivate::addPointerHandler(), QQuickTextNode::addRectangleNode(), addToDirtyList(), QQuickGridViewPrivate::addVisibleItems(), QQuickListViewPrivate::addVisibleItems(), anchors(), QQuickTransform::appendToItem(), QQuickGridViewPrivate::applyInsertionChange(), QQuickPointerHandler::approveGrabTransition(), QQuickTextAreaPrivate::attachFlickable(), QQuickAttachedPropertyPropagatorPrivate::attachTo(), calcEffectiveEnable(), calcEffectiveVisible(), canAcceptTabFocus(), QQuickLayout::checkAnchors(), QQuickMultiPointTouchArea::childMouseEventFilter(), children_at(), children_clear(), children_count(), children_removeLast(), QQuickContainerPrivate::cleanup(), QQuickLoaderPrivate::clear(), QQuickAnchorChanges::clearBindings(), QQuickDeliveryAgentPrivate::clearFocusInScope(), QQuickDeliveryAgentPrivate::clearFocusObject(), clickableItemAtPosition(), QmlJSDebugger::collectItemsAt(), QQuickContents::complete(), QQuickPointerHandler::componentComplete(), QQuickContainerPrivate::contentData_append(), QQuickMenuPrivate::contentData_append(), QQuickContainer::contentItemChange(), QQuickDialogButtonBox::contentItemChange(), QQuickMenu::contentItemChange(), QQuickPageIndicator::contentItemChange(), QQuickItemGrabResultPrivate::create(), QQuickComboBoxPrivate::createdItem(), QQuickTableViewPrivate::createFxTableItem(), QQuickDeliveryAgentPrivate::currentOrItemDeliveryAgent(), data_append(), QQuickWindowPrivate::data_append(), data_at(), QQuickWindowPrivate::data_at(), data_clear(), QQuickWindowPrivate::data_clear(), data_count(), QQuickWindowPrivate::data_count(), data_removeLast(), QQuickWindowPrivate::data_removeLast(), QQuickWindowPrivate::data_replace(), QQuickLayout::deactivateRecur(), debugFocusTree(), QQuickVisualTestUtils::delegateVisible(), QQuickDeliveryAgentPrivate::deliverHoverEvent(), QQuickDeliveryAgentPrivate::deliverHoverEventRecursive(), QQuickDeliveryAgentPrivate::deliverHoverEventToItem(), QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem(), QQuickDeliveryAgentPrivate::deliverPressOrReleaseEvent(), QQuickDeliveryAgentPrivate::deliverSinglePointEventUntilAccepted(), QQuickDeliveryAgentPrivate::deliverTouchAsMouse(), QQuickDeliveryAgentPrivate::deliverUpdatedPoints(), deliveryAgent(), derefFromEffectItem(), QQuickDesignerSupport::derefFromEffectItem(), derefWindow(), QQuickTextAreaPrivate::detachFlickable(), QQuickAttachedPropertyPropagatorPrivate::detachFrom(), detachWindow(), QQuickTumblerPrivate::disconnectFromView(), dumpItemTree(), QQuickAnchorChanges::execute(), fetchNextNode(), QQuickVisualTestUtils::findItems(), QQuickVisualTestUtils::findVisibleChild(), forceUpdate(), QQuickFolderBreadcrumbBarPrivate::getContentWidth(), QQuickTabBarPrivate::getContentWidth(), QQuickPathViewPrivate::getItem(), QQuickListViewPrivate::getSectionItem(), QQuickWheelHandler::handleEventPoint(), QQuickShaderEffectPrivate::handleItemChange(), QQuickPinchHandler::handlePointerEventImpl(), hcenter(), QQuickFlickablePrivate::init(), init(), QQuickWindowPrivate::init(), QQuickStackElement::initialize(), QQuickItemView::initItem(), QQuickLoaderPrivate::initResize(), QQuickViewPrivate::initResize(), QQuickWidgetPrivate::initResize(), QQuickStyleItem::initStyleOptionBase(), QQuickContainerPrivate::insertItem(), QQuickMenuPrivate::insertItem(), QQuickDesignerSupport::isAnchoredTo(), QQuickDesignerSupport::isComponentComplete(), QQuickFolderBreadcrumbBar::isContent(), QQuickSplitView::isContent(), QQuickDesignerSupport::isDirty(), QDeclarativeGeoMapItemBase::isPolishScheduled(), QQuickDesignerSupport::isValidHeight(), QQuickDesignerSupport::isValidWidth(), QQuickSplitView::itemAdded(), QQuickTabBar::itemAdded(), QQuickPageIndicatorPrivate::itemAt(), QmlJSDebugger::itemAt(), QQuickContainer::itemChange(), QQuickShaderEffectSource::itemChange(), QQuickLayout::itemChange(), QQuick3DTexture::itemChange(), QQuickContents::itemChildAdded(), QQuickPageIndicatorPrivate::itemChildAdded(), QQuickContainerPrivate::itemChildAdded(), QQuickMenuPrivate::itemChildAdded(), QQuickContents::itemChildRemoved(), QQuickContents::itemDestroyed(), QQuickControlPrivate::itemGeometryChanged(), QQuickLabelPrivate::itemGeometryChanged(), QQuickTextAreaPrivate::itemGeometryChanged(), QQuickTextFieldPrivate::itemGeometryChanged(), QQuickListViewPrivate::itemGeometryChanged(), QQuickSplitView::itemMoved(), QQuickSplitView::itemRemoved(), QQuickTableViewPrivate::itemReusedCallback(), QQuickMenuPrivate::itemSiblingOrderChanged(), itemToWindowTransform(), QQuickItem::itemTransform(), QQuickKeyNavigationAttached::keyPressed(), QQuickKeyNavigationAttached::keyReleased(), layoutItem(), QQuickSplitViewPrivate::layoutPositionItems(), QQuickSplitViewPrivate::layoutResizeFillItem(), QQuickSplitViewPrivate::layoutResizeSplitItems(), QQuickScrollIndicatorAttachedPrivate::layoutVertical(), QQuickSplitViewPrivate::limitAndApplySizes(), QQuickItem::mapRectFromItem(), QQuickItem::mapRectToItem(), QV4::Heap::QQuickItemWrapper::markObjects(), QQuickAnchors::mirrored(), QQuickDeliveryAgentPrivate::notifyFocusChangesRecur(), QQuickDeliveryAgentPrivate::onGrabChanged(), QQuickFusionDial::paint(), QQuickFusionKnob::paint(), paintOrderChildItems(), QQuickDesignerSupport::parentTransform(), QQuickColorImage::pixmapChange(), QQuickDeliveryAgentPrivate::pointerTargets(), QQuickWindowPrivate::polishItems(), QQuickOpacityAnimatorJob::postSync(), QQuickTransform::prependToItem(), QQuickBasePositioner::prePositioning(), QQuick3DItem2D::preSync(), QQuickMouseAreaPrivate::propagateHelper(), QQuickShaderEffectPrivate::propertyChanged(), QQuickTest::qIsPolishScheduled(), qquickitem_autoParent(), qquickitem_before_paintNode(), QQuickTest::qWaitForPolish(), readBaselineOffset(), readHeight(), readParentItem(), readWidth(), readX(), readY(), recursiveRefFromEffectItem(), refFromEffectItem(), QQuickDesignerSupport::refFromEffectItem(), refWindow(), QQuickApplicationWindowPrivate::relayout(), QQuickTableViewPrivate::releaseItem(), QQuickItemViewPrivate::releaseItem(), QQuickListViewPrivate::releaseItem(), QQuickPathViewPrivate::releaseItem(), QQuickListViewPrivate::releaseSectionItem(), QQuickAnchorsPrivate::remDepend(), QQuickPopupPositioner::removeAncestorListeners(), removeChild(), QQuick3DItem2D::removeChildItem(), removeFromDirtyList(), QQuickControlPrivate::removeImplicitSizeListener(), QQuickContainerPrivate::removeItem(), QQuickMenuPrivate::removeItem(), QQuickDesignerSupport::renderImageForItem(), QQuickContainerPrivate::reorderItems(), QQuickColumn::reportConflictingAnchors(), QQuickRow::reportConflictingAnchors(), QQuickGrid::reportConflictingAnchors(), QQuickFlow::reportConflictingAnchors(), QQuickPopupPositioner::reposition(), QQuickDesignerSupport::resetDirty(), QQuickSplitViewAttached::resetPreferredHeight(), QQuickSplitViewAttached::resetPreferredWidth(), QQuickControlPrivate::resizeBackground(), QQuickLabelPrivate::resizeBackground(), QQuickTextAreaPrivate::resizeBackground(), QQuickTextFieldPrivate::resizeBackground(), QQuickSwipeDelegatePrivate::resizeBackground(), QQuickMenuPrivate::resizeItem(), QQuickMonthGridPrivate::resizeItems(), QQuickSwipeViewPrivate::resizeItems(), resolveLayoutMirror(), resources_append(), resources_at(), resources_clear(), resources_count(), resources_removeLast(), QQuickAnchorChanges::reverse(), QQuickAnchorChanges::rewind(), QQuickAnchorChanges::saveCurrentValues(), QQuickAnchorChanges::saveOriginals(), QQuickDeliveryAgentPrivate::sendFilteredMouseEvent(), QQuickDeliveryAgentPrivate::sendFilteredPointerEventImpl(), QQuickDeliveryAgentPrivate::sendHoverEvent(), QQmlDebugTranslationServicePrivate::sendStateList(), QQuickLoader::setActive(), QQuickControl::setBackground(), QQuickLabel::setBackground(), QQuickTextArea::setBackground(), QQuickTextField::setBackground(), QQuickPopupAnchors::setCenterIn(), QQuickItem::setContainmentMask(), QQuickControlPrivate::setContentItem_helper(), QQuickMenuPrivate::setCurrentIndex(), QQuickTextNode::setCursor(), setEffectiveEnableRecur(), setEffectiveVisibleRecur(), QQuickItem::setFlag(), QQuickScrollBarAttachedPrivate::setFlickable(), QQuickItem::setFocus(), QQuickDeliveryAgentPrivate::setFocusInScope(), QQuickPage::setFooter(), setHasCursorInChild(), setHasHoverInChild(), QQuickPage::setHeader(), QQuickShaderEffectSource::setHideSource(), QQuickScrollBarAttached::setHorizontal(), QQuickScrollIndicatorAttached::setHorizontal(), setImplicitLayoutMirror(), QQuickLoaderPrivate::setInitialState(), QQuickPointerHandler::setParentItem(), QQuickItem::setParentItem(), QQuickPopupPositioner::setParentItem(), QQuickView::setResizeMode(), QQuickWidget::setResizeMode(), QQuickShaderEffectSource::setSourceItem(), QQuick3DTexture::setSourceItem(), QQmlDebugTranslationServicePrivate::setState(), QQuickTumblerPrivate::setupViewData(), QQuickScrollBarAttached::setVertical(), QQuickScrollIndicatorAttached::setVertical(), QQuickItemViewFxItem::setVisible(), QQuickItem::setZ(), QQuickLayout::shouldIgnoreItem(), QQuickItem::stackAfter(), QQuickItem::stackBefore(), QQuickDragAttachedPrivate::start(), QQuickDesignerSupport::statesForItem(), QQuickTransformAnimatorJob::Helper::sync(), QQuickBasicProgressBarNode::sync(), QQuickMaterialProgressBarNode::sync(), QQuickUniversalBusyIndicatorNode::sync(), QQuickUniversalProgressBarNode::sync(), QQuickWindowPrivate::syncSceneGraph(), QQuickShaderEffectSource::textureProvider(), QQuickItemViewFxItem::trackGeometry(), transform_at(), transform_clear(), transform_count(), transformChanged(), QQuickItemGroup::unwatch(), QQuickIconLabelPrivate::unwatchChanges(), QQuickBasePositionerPrivate::unwatchChanges(), QQuickActionPrivate::unwatchItem(), QQuickTransform::update(), QQuickMultiEffectPrivate::updateBlurItemsAmount(), QQuickWindowPrivate::updateChildrenPalettes(), QQuickPopupPrivate::updateContentPalettes(), QQuickWindowPrivate::updateDirtyNode(), QQuickWindowPrivate::updateDirtyNodes(), QQuickDeliveryAgentPrivate::updateFocusItemTransform(), QQuickHoverHandlerPrivate::updateHasHoverInChild(), QQuickPathViewPrivate::updateItem(), QDeclarativeGeoMap::updateItemToWindowTransform(), QQuickDialogButtonBoxPrivate::updateLayout(), QQuickTabBarPrivate::updateLayout(), QQuickImageParticle::updatePaintNode(), QQuickMultiPointTouchArea::updatePaintNode(), QQuickShaderEffectSource::updatePaintNode(), QQuickMaterialRipple::updatePaintNode(), QQuickTextArea::updatePaintNode(), updatePixelRatioHelper(), QQuick3DItem2D::updateSpatialNode(), QQuick3DTexture::updateSpatialNode(), updateSubFocusItem(), QQuickMultiPointTouchArea::updateTouchData(), QQuickShaderEffect::updateUniformValue(), vcenter(), QQuickListView::viewportMoved(), QQuickGridView::viewportMoved(), visibleChildren_at(), visibleChildren_count(), warnIfHorizontallyAnchored(), QQuickItemGroup::watch(), QQuickIconLabelPrivate::watchChanges(), QQuickBasePositionerPrivate::watchChanges(), QQuickActionPrivate::watchItem(), and QQuickDesignerSupport::windowTransform().
|
virtual |
Reimplemented in QQuickLoaderPrivate, QQuickTextPrivate, QQuickTextAreaPrivate, and QQuickTextFieldPrivate.
Definition at line 7409 of file qquickitem.cpp.
References implicitHeight.
Referenced by QQuickLoaderPrivate::getImplicitHeight(), QQuickTextAreaPrivate::getImplicitHeight(), and QQuickTextFieldPrivate::getImplicitHeight().
|
virtual |
Reimplemented in QQuickLoaderPrivate, QQuickTextPrivate, QQuickTextEditPrivate, QQuickTextInputPrivate, QQuickTextAreaPrivate, and QQuickTextFieldPrivate.
Definition at line 7200 of file qquickitem.cpp.
References implicitWidth.
Referenced by QQuickLoaderPrivate::getImplicitWidth(), QQuickTextAreaPrivate::getImplicitWidth(), and QQuickTextFieldPrivate::getImplicitWidth().
QTransform QQuickItemPrivate::globalToWindowTransform | ( | ) | const |
Returns a transform that maps points from global space into window space.
Definition at line 3131 of file qquickitem.cpp.
References QTransform::fromTranslate(), pos, Q_UNLIKELY, QQuickRenderControl::renderWindowFor(), and window.
|
virtual |
Deliver the event to all this item's PointerHandlers, but skip HoverHandlers if the event is a QMouseEvent or QWheelEvent (they are visited in QQuickDeliveryAgentPrivate::deliverHoverEventToItem()), and skip handlers that are in QQuickPointerHandlerPrivate::deviceDeliveryTargets(). If avoidGrabbers is true, also skip delivery to any handler that is exclusively or passively grabbing any point within event (because delivery to grabbers is handled separately).
Definition at line 5644 of file qquickitem.cpp.
References QQuickPointerHandlerPrivate::deviceDeliveryTargets(), extra, and QQuickDeliveryAgentPrivate::isMouseOrWheelEvent().
Referenced by QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem(), QQuickDeliveryAgentPrivate::deliverSinglePointEventUntilAccepted(), and QQuickDeliveryAgentPrivate::deliverUpdatedPoints().
bool QQuickItemPrivate::hasEnabledHoverHandlers | ( | ) | const |
Definition at line 9178 of file qquickitem.cpp.
References extra, and hasPointerHandlers().
Referenced by setHasHoverInChild().
bool QQuickItemPrivate::hasPointerHandlers | ( | ) | const |
Definition at line 9173 of file qquickitem.cpp.
References extra.
Referenced by anyPointerHandlerWants(), QQuickDeliveryAgentPrivate::deliverHoverEventToItem(), hasEnabledHoverHandlers(), and QQuickDeliveryAgentPrivate::sendFilteredPointerEventImpl().
|
inline |
Definition at line 582 of file qquickitem_p.h.
|
inline |
Definition at line 588 of file qquickitem_p.h.
Referenced by QQuickDesignerSupport::isValidWidth(), QQuickAnchorChanges::rewind(), QQuickAnchorChanges::saveOriginals(), and QQuickLoaderPrivate::setInitialState().
QQuickAnchorLine QQuickItemPrivate::horizontalCenter | ( | ) | const |
Definition at line 4416 of file qquickitem.cpp.
References QQuickAnchors::HCenterAnchor.
|
virtual |
Reimplemented in QQuickPopupItemPrivate, QQuickTextAreaPrivate, and QQuickTextFieldPrivate.
Definition at line 7402 of file qquickitem.cpp.
References emit, ImplicitHeight, QQuickItemChangeListener::itemImplicitHeightChanged(), and notifyChangeListeners().
Referenced by QQuickPopupItemPrivate::implicitHeightChanged(), QQuickTextAreaPrivate::implicitHeightChanged(), QQuickTextFieldPrivate::implicitHeightChanged(), and QQuickTextPrivate::updateSize().
|
virtual |
Reimplemented in QQuickPopupItemPrivate, QQuickTextAreaPrivate, and QQuickTextFieldPrivate.
Definition at line 7193 of file qquickitem.cpp.
References emit, ImplicitWidth, QQuickItemChangeListener::itemImplicitWidthChanged(), and notifyChangeListeners().
Referenced by QQuickPopupItemPrivate::implicitWidthChanged(), QQuickTextAreaPrivate::implicitWidthChanged(), QQuickTextFieldPrivate::implicitWidthChanged(), and QQuickTextPrivate::updateSize().
void QQuickItemPrivate::init | ( | QQuickItem * | parent | ) |
Definition at line 3225 of file qquickitem.cpp.
References baselineOffset, get(), inheritedLayoutMirror, inheritMirrorFromParent, QObjectData::isQuickItem, QObjectData::parent, and setImplicitLayoutMirror().
|
inline |
Definition at line 618 of file qquickitem_p.h.
bool QQuickItemPrivate::isTransparentForPositioner | ( | ) | const |
Definition at line 6594 of file qquickitem.cpp.
References extra.
Referenced by QQuickContainerPrivate::contentData_append(), QQuickPageIndicatorPrivate::itemAt(), QQuickContainer::itemChange(), QQuickPageIndicatorPrivate::itemChildAdded(), QQuickContainerPrivate::itemChildAdded(), QQuickContainerPrivate::reorderItems(), QQuickMonthGridPrivate::resizeItems(), and QQuickLayout::shouldIgnoreItem().
void QQuickItemPrivate::itemChange | ( | QQuickItem::ItemChange | change, |
const QQuickItem::ItemChangeData & | data | ||
) |
Definition at line 6740 of file qquickitem.cpp.
References Children, Enabled, QQuickItem::ItemActiveFocusHasChanged, QQuickItem::ItemAntialiasingHasChanged, QQuickItemChangeListener::itemChildAdded(), QQuickItem::ItemChildAddedChange, QQuickItemChangeListener::itemChildRemoved(), QQuickItem::ItemChildRemovedChange, QQuickItem::ItemDevicePixelRatioHasChanged, QQuickItemChangeListener::itemEnabledChanged(), QQuickItem::ItemEnabledHasChanged, QQuickItemChangeListener::itemOpacityChanged(), QQuickItem::ItemOpacityHasChanged, QQuickItemChangeListener::itemParentChanged(), QQuickItem::ItemParentHasChanged, QQuickItemChangeListener::itemRotationChanged(), QQuickItem::ItemRotationHasChanged, QQuickItem::ItemSceneChange, QQuickItemChangeListener::itemVisibilityChanged(), QQuickItem::ItemVisibleHasChanged, notifyChangeListeners(), Opacity, Parent, Rotation, subtreeTransformChangedEnabled, and Visibility.
Referenced by addChild(), derefWindow(), QQuickDeliveryAgentPrivate::notifyFocusChangesRecur(), refWindow(), removeChild(), setEffectiveEnableRecur(), setEffectiveVisibleRecur(), and updatePixelRatioHelper().
|
inline |
Definition at line 1020 of file qquickitem_p.h.
References arg, createTransformNode(), QString::fromLatin1(), itemNodeInstance, QSGNode::OwnedByParent, qsgnode_set_description(), and QSGNode::setFlag().
Referenced by childContainerNode(), fetchNextNode(), qquickitem_before_paintNode(), and QQuickWindowPrivate::updateDirtyNode().
void QQuickItemPrivate::itemToParentTransform | ( | QTransform * | t | ) | const |
Modifies t with this item's local transform relative to its parent.
Definition at line 3084 of file qquickitem.cpp.
References QQuickTransform::applyTo(), QList< T >::at(), computeTransformOrigin(), QList< T >::isEmpty(), rotation(), scale(), QList< T >::size(), transforms, QPointF::x(), and QPointF::y().
Referenced by itemToWindowTransform(), and QQuickDesignerSupport::parentTransform().
QTransform QQuickItemPrivate::itemToWindowTransform | ( | ) | const |
Returns a transform that maps points from item space into window space.
Definition at line 3072 of file qquickitem.cpp.
References get(), itemToParentTransform(), itemToWindowTransform(), parentItem, and Q_ASSERT.
Referenced by itemToWindowTransform(), QQuickItem::mapRectFromItem(), QQuickDeliveryAgentPrivate::updateFocusItemTransform(), QDeclarativeGeoMap::updateItemToWindowTransform(), windowToItemTransform(), and QQuickDesignerSupport::windowTransform().
QQuickAnchorLine QQuickItemPrivate::left | ( | ) | const |
Definition at line 4404 of file qquickitem.cpp.
References QQuickAnchors::LeftAnchor.
void QQuickItemPrivate::localizedTouchEvent | ( | const QTouchEvent * | event, |
bool | isFiltering, | ||
QMutableTouchEvent * | localized | ||
) |
This property holds the palette currently set for the item.
This property describes the item's requested palette. The palette is used by the item's style when rendering all controls, and is available as a means to ensure that custom controls can maintain consistency with the native platform's native look and feel. It's common that different platforms, or different styles, define different palettes for an application.
The default palette depends on the system environment. ApplicationWindow maintains a system/theme palette which serves as a default for all controls. There may also be special palette defaults for certain types of controls. You can also set the default palette for controls by either:
\list
Items propagate explicit palette properties from parents to children. If you change a specific property on a items's palette, that property propagates to all of the item's children, overriding any system defaults for that property.
Create a modified copy of the given event intended for delivery to this item, containing pointers to only the QEventPoint instances that are relevant to this item, and transforming their positions to this item's coordinate system.
Returns an invalid event with type \l QEvent::None if all points are stationary; or there are no points inside the item; or none of the points were pressed inside, neither the item nor any of its handlers is grabbing any of them, and isFiltering is false.
When isFiltering is true, it is assumed that the item cares about all points which are inside its bounds, because most filtering items need to monitor eventpoint movements until a drag threshold is exceeded or the requirements for a gesture to be recognized are met in some other way.
Definition at line 9081 of file qquickitem.cpp.
References QList< T >::append(), QMutableEventPoint::detach(), QList< T >::isEmpty(), QEvent::None, QObjectData::parent, QQuickPointerHandler::parentItem(), QEventPoint::Pressed, qobject_cast< QQuickItem * >(), QEventPoint::Released, ret, QEvent::TouchBegin, QEvent::TouchEnd, and QEvent::TouchUpdate.
Referenced by QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem(), QQuickDeliveryAgentPrivate::deliverTouchAsMouse(), and QQuickDeliveryAgentPrivate::sendFilteredPointerEventImpl().
|
inline |
Definition at line 1003 of file qquickitem_p.h.
References child, childItems, and sortedChildItems.
Referenced by addChild(), removeChild(), QQuickItem::setZ(), QQuickItem::stackAfter(), and QQuickItem::stackBefore().
|
inlinevirtual |
Reimplemented in QQuickItemViewPrivate, QQuickBasePositionerPrivate, QQuickTextPrivate, QQuickTextEditPrivate, QQuickTextInputPrivate, QQuickGridLayoutBasePrivate, and QQuickControlPrivate.
Definition at line 688 of file qquickitem_p.h.
Referenced by setLayoutMirror().
|
static |
Definition at line 2465 of file qquickitem.cpp.
References QQuickItem::activeFocusOnTab(), canAcceptTabFocus(), QGraphicsItem::childItems(), QQuickItem::childItems(), QList< T >::constFirst(), QDuplicateTracker< T, Prealloc >::hasSeen(), QListSpecialMethodsBase< T >::indexOf(), QList< T >::isEmpty(), QQuickItem::isEnabled(), isTabFence, QQuickItem::isVisible(), item, nextTabChildItem(), QObjectData::parent, QGraphicsItem::parentItem(), QQuickItem::parentItem(), prevTabChildItem(), Q_ASSERT, qCDebug, QGuiApplication::styleHints(), Qt::TabFocusAllControls, QStyleHints::tabFocusBehavior, and QGraphicsItem::window().
Referenced by focusNextPrev().
|
static |
Definition at line 2421 of file qquickitem.cpp.
References child, QGraphicsItem::childItems(), children(), item, and qWarning.
Referenced by nextPrevItemInTabFocusChain().
|
inline |
Definition at line 346 of file qquickitem_p.h.
References args, changeTypes, and function.
Referenced by implicitHeightChanged(), implicitWidthChanged(), itemChange(), QQuickDeliveryAgentPrivate::notifyFocusChangesRecur(), QQuickDeliveryAgentPrivate::setFocusInScope(), and siblingOrderChanged().
|
inline |
Definition at line 597 of file qquickitem_p.h.
Referenced by QQuickWindowPrivate::updateDirtyNode().
|
inline |
Definition at line 671 of file qquickitem_p.h.
Referenced by childContainerNode(), and QQuickWindowPrivate::updateDirtyNode().
|
inline |
Definition at line 1014 of file qquickitem_p.h.
References QQuickItem::Center, and extra.
Referenced by computeTransformOrigin(), QQuickWindowPrivate::updateDirtyNode(), and QQuickFlipablePrivate::updateSide().
QList< QQuickItem * > QQuickItemPrivate::paintOrderChildItems | ( | ) | const |
Definition at line 2878 of file qquickitem.cpp.
References QList< T >::at(), QList< T >::begin(), childItems, QList< T >::end(), get(), i, itemZOrder_sort(), QList< T >::size(), sortedChildItems, and z().
Referenced by clickableItemAtPosition(), QmlJSDebugger::collectItemsAt(), QQuickDeliveryAgentPrivate::deliverHoverEventRecursive(), fetchNextNode(), QmlJSDebugger::itemAt(), QQuickMouseAreaPrivate::propagateHelper(), QQuickOverlayPrivate::stackingOrderPopups(), transformChanged(), and QQuickWindowPrivate::updateDirtyNode().
|
static |
Definition at line 2442 of file qquickitem.cpp.
References child, QGraphicsItem::childItems(), children(), item, and qWarning.
Referenced by nextPrevItemInTabFocusChain().
QQuickItemPrivate::Q_OBJECT_COMPAT_PROPERTY | ( | QQuickItemPrivate | , |
qreal | , | ||
height | , | ||
&QQuickItemPrivate::setHeight | , | ||
&QQuickItemPrivate::heightChanged | |||
) |
QQuickItemPrivate::Q_OBJECT_COMPAT_PROPERTY | ( | QQuickItemPrivate | , |
qreal | , | ||
width | , | ||
&QQuickItemPrivate::setWidth | , | ||
&QQuickItemPrivate::widthChanged | |||
) |
QQuickItemPrivate::Q_OBJECT_COMPAT_PROPERTY | ( | QQuickItemPrivate | , |
qreal | , | ||
x | , | ||
&QQuickItemPrivate::setX | , | ||
&QQuickItemPrivate::xChanged | |||
) |
QQuickItemPrivate::Q_OBJECT_COMPAT_PROPERTY | ( | QQuickItemPrivate | , |
qreal | , | ||
y | , | ||
&QQuickItemPrivate::setY | , | ||
&QQuickItemPrivate::yChanged | |||
) |
void QQuickItemPrivate::recursiveRefFromEffectItem | ( | int | refs | ) |
Definition at line 6698 of file qquickitem.cpp.
References QList< T >::at(), child, childItems, effectiveVisible, extra, get(), recursiveRefFromEffectItem(), and QList< T >::size().
Referenced by addChild(), derefFromEffectItem(), recursiveRefFromEffectItem(), refFromEffectItem(), and removeChild().
void QQuickItemPrivate::refFromEffectItem | ( | bool | hide | ) |
Definition at line 6683 of file qquickitem.cpp.
References ChildrenStackingChanged, dirty(), EffectReference, extra, get(), hide(), HideReference, parentItem, and recursiveRefFromEffectItem().
Referenced by QQuickItemGrabResultPrivate::create(), QQuickDesignerSupport::refFromEffectItem(), and QQuickShaderEffectSource::setHideSource().
void QQuickItemPrivate::refWindow | ( | QQuickWindow * | c | ) |
Definition at line 2967 of file qquickitem.cpp.
References QList< T >::at(), child, childItems, dirty(), extra, get(), QQuickWindowPrivate::get(), QSet< T >::insert(), itemChange(), QQuickItem::ItemSceneChange, QQuickWindowPrivate::itemsToPolish, parentItem, QQuickWindowPrivate::parentlessItems, polishScheduled, Q_ASSERT, qWarning, refWindow(), QList< T >::size(), window, and windowRefCount.
Referenced by QQuickShaderEffectPrivate::handleItemChange(), QQuickShaderEffectSource::itemChange(), QQuick3DTexture::itemChange(), QQuickShaderEffectPrivate::propertyChanged(), refWindow(), and QQuick3DTexture::updateSpatialNode().
|
inlinevirtual |
Definition at line 424 of file qquickitem_p.h.
Referenced by QQuickItem::setContainmentMask().
void QQuickItemPrivate::removeChild | ( | QQuickItem * | child | ) |
Definition at line 2932 of file qquickitem.cpp.
References child, childItems, ChildrenChanged, QListSpecialMethodsBase< T >::contains(), dirty(), emit, extra, get(), inDestructor, itemChange(), QQuickItem::ItemChildRemovedChange, markSortedChildrenDirty(), Q_ASSERT, recursiveRefFromEffectItem(), QList< T >::removeOne(), setHasCursorInChild(), setHasHoverInChild(), subtreeCursorEnabled, and subtreeHoverEnabled.
Referenced by QQuickItem::setParentItem().
void QQuickItemPrivate::removeFromDirtyList | ( | ) |
Definition at line 6671 of file qquickitem.cpp.
References get(), nextDirtyItem, prevDirtyItem, and Q_ASSERT.
Referenced by derefWindow(), QQuickDesignerSupport::resetDirty(), and QQuickWindowPrivate::updateDirtyNodes().
void QQuickItemPrivate::removeItemChangeListener | ( | QQuickItemChangeListener * | listener, |
ChangeTypes | types | ||
) |
Definition at line 3985 of file qquickitem.cpp.
References changeListeners, and PRINT_LISTENERS.
Referenced by QQuick3DTexture::~QQuick3DTexture(), QQuickContents::~QQuickContents(), QQuickControl::~QQuickControl(), QQuickLayout::~QQuickLayout(), QQuickMenu::~QQuickMenu(), QQuickOverlay::~QQuickOverlay(), QQuickPage::~QQuickPage(), QQuickPageIndicator::~QQuickPageIndicator(), QQuickPopupPositioner::~QQuickPopupPositioner(), QQuickScrollBarAttached::~QQuickScrollBarAttached(), QQuickScrollIndicatorAttached::~QQuickScrollIndicatorAttached(), QQuickShaderEffectSource::~QQuickShaderEffectSource(), QQuickStackElement::~QQuickStackElement(), QQuickStackViewAttached::~QQuickStackViewAttached(), QQuickContainerPrivate::cleanup(), QQuickContainer::contentItemChange(), QQuickDialogButtonBox::contentItemChange(), QQuickMenu::contentItemChange(), QQuickPageIndicator::contentItemChange(), QQuickLayout::deactivateRecur(), QQuickTextAreaPrivate::detachFlickable(), QQuickAttachedPropertyPropagatorPrivate::detachFrom(), QQuickTumblerPrivate::disconnectFromView(), QQuickRowPrivate::effectiveLayoutDirectionChange(), QQuickGridPrivate::effectiveLayoutDirectionChange(), QQuickLayout::itemChange(), QQuickContents::itemChildRemoved(), QQuickContents::itemDestroyed(), QQuickListViewPrivate::releaseItem(), QQuickPathViewPrivate::releaseItem(), QQuickListViewPrivate::releaseSectionItem(), QQuickPopupPositioner::removeAncestorListeners(), QQuick3DItem2D::removeChildItem(), QQuickControlPrivate::removeImplicitSizeListener(), QQuickContainerPrivate::removeItem(), QQuickMenuPrivate::removeItem(), QQuickControlPrivate::setContentItem_helper(), QQuickScrollBarAttachedPrivate::setFlickable(), QQuickPage::setFooter(), QQuickPage::setHeader(), QQuickScrollBarAttached::setHorizontal(), QQuickScrollIndicatorAttached::setHorizontal(), QQuickPopupPositioner::setParentItem(), QQuick3DTexture::setSourceItem(), QQuickScrollBarAttached::setVertical(), QQuickScrollIndicatorAttached::setVertical(), QQuickItemViewFxItem::trackGeometry(), QQuickItemGroup::unwatch(), QQuickIconLabelPrivate::unwatchChanges(), QQuickBasePositionerPrivate::unwatchChanges(), and QQuickActionPrivate::unwatchItem().
|
virtual |
Definition at line 9207 of file qquickitem.cpp.
References QObject::destroyed(), QObject::disconnect(), extra, and Q_ASSERT.
Referenced by QQuickPointerHandler::setParentItem().
void QQuickItemPrivate::resolveLayoutMirror | ( | ) |
Definition at line 1531 of file qquickitem.cpp.
References effectiveLayoutMirror, get(), inheritedLayoutMirror, inheritMirrorFromItem, inheritMirrorFromParent, isMirrorImplicit, QQuickItem::parentItem(), parentItem, and setImplicitLayoutMirror().
Referenced by QQuickLayoutMirroringAttached::resetEnabled(), QQuickLayoutMirroringAttached::setChildrenInherit(), and QQuickLayoutMirroringAttached::setEnabled().
QQmlListProperty< QObject > QQuickItemPrivate::resources | ( | ) |
Definition at line 5042 of file qquickitem.cpp.
References resources_append(), resources_at(), resources_clear(), resources_count(), and resources_removeLast().
Referenced by data_at(), data_clear(), data_count(), data_removeLast(), and resources_removeLast().
|
static |
Definition at line 3374 of file qquickitem.cpp.
References _q_resourceObjectDeleted(), extra, get(), QQmlListProperty< T >::object, qmlobject_connect, SIGNAL, and SLOT.
Referenced by data_append(), and resources().
|
static |
Definition at line 3368 of file qquickitem.cpp.
References extra, get(), and QQmlListProperty< T >::object.
Referenced by data_at(), and resources().
|
static |
Definition at line 3391 of file qquickitem.cpp.
References _q_resourceObjectDeleted(), extra, get(), QQmlListProperty< T >::object, qmlobject_disconnect, SIGNAL, and SLOT.
Referenced by data_clear(), and resources().
|
static |
Definition at line 3385 of file qquickitem.cpp.
References extra, get(), and QQmlListProperty< T >::object.
Referenced by data_at(), data_count(), data_removeLast(), and resources().
|
static |
Definition at line 3404 of file qquickitem.cpp.
References _q_resourceObjectDeleted(), extra, get(), QQmlListProperty< T >::object, qmlobject_disconnect, QQmlListProperty< T >::removeLast, resources(), SIGNAL, and SLOT.
Referenced by data_removeLast(), and resources().
QQuickAnchorLine QQuickItemPrivate::right | ( | ) | const |
Definition at line 4410 of file qquickitem.cpp.
References QQuickAnchors::RightAnchor.
|
inline |
Definition at line 673 of file qquickitem_p.h.
Referenced by childContainerNode(), and QQuickWindowPrivate::updateDirtyNode().
|
inline |
Definition at line 596 of file qquickitem_p.h.
Referenced by itemToParentTransform(), QQuickWindowPrivate::updateDirtyNode(), QQuickOverlayPrivate::updateGeometry(), and QQuickFlipablePrivate::updateSide().
|
inline |
Definition at line 595 of file qquickitem_p.h.
Referenced by itemToParentTransform(), QQuickWindowPrivate::updateDirtyNode(), and QQuickFlipablePrivate::updateSide().
|
inline |
Definition at line 991 of file qquickitem_p.h.
References context, QObjectPrivate::get(), Q_ASSERT, and window.
Referenced by QQuickMultiPointTouchArea::updatePaintNode().
|
inline |
Definition at line 997 of file qquickitem_p.h.
References context, QObjectPrivate::get(), Q_ASSERT, and window.
Referenced by QQuickTextNode::addGlyphs(), QQuickTextNode::addImage(), QQuickTextNode::addRectangleNode(), QQuickTextNode::setCursor(), QQuickImageParticle::updatePaintNode(), and QQuick3DTexture::updateSpatialNode().
void QQuickItemPrivate::setAccessible | ( | ) |
Definition at line 1659 of file qquickitem.cpp.
References isAccessible.
void QQuickItemPrivate::setCulled | ( | bool | cull | ) |
Definition at line 6730 of file qquickitem.cpp.
References culled, dirty(), extra, and HideReference.
Referenced by QQuickGridViewPrivate::addVisibleItems(), QQuickListViewPrivate::addVisibleItems(), QQuickGridViewPrivate::applyInsertionChange(), QQuickComboBoxPrivate::createdItem(), QQuickItemView::initItem(), QQuickMenuPrivate::insertItem(), QQuickTabBar::itemAdded(), QQuickListViewPrivate::itemGeometryChanged(), QQuickTableViewPrivate::itemReusedCallback(), QQuickItemViewPrivate::releaseItem(), QQuickItemViewFxItem::setVisible(), QQuickPathViewPrivate::updateItem(), QQuickListView::viewportMoved(), and QQuickGridView::viewportMoved().
void QQuickItemPrivate::setEffectiveEnableRecur | ( | QQuickItem * | scope, |
bool | newEffectiveEnable | ||
) |
Definition at line 6544 of file qquickitem.cpp.
References activeFocus, QList< T >::at(), childItems, QQuickDeliveryAgentPrivate::clearFocusInScope(), deliveryAgentPrivate(), QQuickDeliveryAgentPrivate::DontChangeFocusProperty, QQuickDeliveryAgentPrivate::DontChangeSubFocusItem, effectiveEnable, emit, explicitEnable, focus, get(), isAccessible, itemChange(), QQuickItem::ItemEnabledHasChanged, QQuickItem::ItemIsFocusScope, Qt::OtherFocusReason, QQuickDeliveryAgentPrivate::removeGrabber(), setEffectiveEnableRecur(), QQuickDeliveryAgentPrivate::setFocusInScope(), and QList< T >::size().
Referenced by setEffectiveEnableRecur().
bool QQuickItemPrivate::setEffectiveVisibleRecur | ( | bool | newEffectiveVisible | ) |
Definition at line 6494 of file qquickitem.cpp.
References QList< T >::at(), childItems, ChildrenStackingChanged, deliveryAgentPrivate(), dirty(), effectiveVisible, emit, explicitVisible, get(), inDestructor, isAccessible, itemChange(), QQuickItem::ItemVisibleHasChanged, parentItem, setEffectiveVisibleRecur(), QList< T >::size(), Visible, and window.
Referenced by setEffectiveVisibleRecur(), and setVisible().
void QQuickItemPrivate::setHasCursorInChild | ( | bool | hasCursor | ) |
Definition at line 7993 of file qquickitem.cpp.
References childItems, get(), hasCursor, QObjectData::parent, Q_UNUSED, setHasCursorInChild(), and subtreeCursorEnabled.
Referenced by addChild(), QQuickPointerHandler::componentComplete(), removeChild(), and setHasCursorInChild().
void QQuickItemPrivate::setHasHoverInChild | ( | bool | hasHover | ) |
Definition at line 8021 of file qquickitem.cpp.
References childItems, get(), hasEnabledHoverHandlers(), hoverEnabled, QObjectData::parent, qCDebug, setHasHoverInChild(), and subtreeHoverEnabled.
Referenced by addChild(), removeChild(), setHasHoverInChild(), and QQuickHoverHandlerPrivate::updateHasHoverInChild().
Definition at line 581 of file qquickitem_p.h.
void QQuickItemPrivate::setImplicitAntialiasing | ( | bool | antialiasing | ) |
Definition at line 6939 of file qquickitem.cpp.
References antialiasing, componentComplete, emit, and implicitAntialiasing.
Referenced by QQuickRectanglePrivate::maybeSetImplicitAntialiasing().
void QQuickItemPrivate::setImplicitLayoutMirror | ( | bool | mirror, |
bool | inherit | ||
) |
Definition at line 1542 of file qquickitem.cpp.
References QList< T >::at(), child, childItems, effectiveLayoutMirror, get(), i, inheritedLayoutMirror, inheritMirrorFromItem, inheritMirrorFromParent, isMirrorImplicit, qmlobject_cast< QQuickItem * >(), setImplicitLayoutMirror(), setLayoutMirror(), and QList< T >::size().
Referenced by init(), resolveLayoutMirror(), and setImplicitLayoutMirror().
void QQuickItemPrivate::setLayoutMirror | ( | bool | mirror | ) |
Definition at line 1563 of file qquickitem.cpp.
References _anchors, QQuickAnchorsPrivate::centerInChanged(), effectiveLayoutMirror, emit, extra, QQuickAnchorsPrivate::fillChanged(), QQuickAnchorsPrivate::get(), mirrorChange(), and QQuickAnchorsPrivate::updateHorizontalAnchors().
Referenced by QQuickLayoutMirroringAttached::setEnabled(), and setImplicitLayoutMirror().
Definition at line 5196 of file qquickitem.cpp.
References _states(), QQuickStateGroup::setState(), and state().
void QQuickItemPrivate::setTransparentForPositioner | ( | bool | trans | ) |
Definition at line 6599 of file qquickitem.cpp.
References extra.
Referenced by QQuickRepeaterPrivate::QQuickRepeaterPrivate(), and QQuickUniversalFocusRectangle::QQuickUniversalFocusRectangle().
|
virtual |
Reimplemented in QDeclarativeGeoMapCopyrightNoticePrivate.
Definition at line 6406 of file qquickitem.cpp.
References calcEffectiveVisible(), dirty(), emit, explicitVisible, parentItem, setEffectiveVisibleRecur(), Visible, and QQuickItem::visibleChildrenChanged().
Referenced by QDeclarativeGeoMapCopyrightNoticePrivate::setVisible().
Definition at line 578 of file qquickitem_p.h.
Definition at line 572 of file qquickitem_p.h.
Definition at line 575 of file qquickitem_p.h.
void QQuickItemPrivate::siblingOrderChanged | ( | ) |
Definition at line 3682 of file qquickitem.cpp.
References QQuickItemChangeListener::itemSiblingOrderChanged(), notifyChangeListeners(), and SiblingOrder.
QString QQuickItemPrivate::state | ( | ) | const |
Definition at line 5188 of file qquickitem.cpp.
References _stateGroup, and QQuickStateGroup::state.
Referenced by setState().
QQmlListProperty< QQuickState > QQuickItemPrivate::states | ( | ) |
Definition at line 5146 of file qquickitem.cpp.
References _states(), and QQuickStateGroup::statesProperty().
QQuickAnchorLine QQuickItemPrivate::top | ( | ) | const |
Definition at line 4422 of file qquickitem.cpp.
References QQuickAnchors::TopAnchor.
Referenced by QQuickStackViewPrivate::replaceElements(), and QQuickTextInputPrivate::updateVerticalScroll().
|
static |
Definition at line 3535 of file qquickitem.cpp.
References QQmlListProperty< T >::object.
|
static |
Definition at line 3544 of file qquickitem.cpp.
References get(), and QQmlListProperty< T >::object.
|
static |
Definition at line 3555 of file qquickitem.cpp.
References get(), QQuickTransformPrivate::get(), QQuickTransformPrivate::items, QQmlListProperty< T >::object, QList< T >::removeOne(), and Transform.
|
static |
Definition at line 3489 of file qquickitem.cpp.
References get(), and QQmlListProperty< T >::object.
|
virtual |
QQuickItemPrivate::dirty() calls transformChanged(q) to inform this item and all its children that its transform has changed, with transformedItem always being the parent item that caused the change. Override to react, e.g. to call update() if the item needs to re-generate SG nodes based on visible extents. If you override in a subclass, you must also call this (superclass) function and return the value from it.
This function recursively visits all children as long as subtreeTransformChangedEnabled is true, returns true
if any of those children still has the ItemObservesViewport flag set, but otherwise turns subtreeTransformChangedEnabled off, if no children are observing.
Reimplemented in QQuickFlipablePrivate, QQuickTextPrivate, and QQuickTextEditPrivate.
Definition at line 5370 of file qquickitem.cpp.
References child, Clip, componentComplete, dirty(), extra, get(), QQuickItem::ItemObservesViewport, paintOrderChildItems(), qCDebug, ret, subtreeTransformChangedEnabled, and transformChanged().
Referenced by dirty(), transformChanged(), QQuickFlipablePrivate::transformChanged(), QQuickTextPrivate::transformChanged(), and QQuickTextEditPrivate::transformChanged().
QQmlListProperty< QQuickTransition > QQuickItemPrivate::transitions | ( | ) |
Definition at line 5183 of file qquickitem.cpp.
References _states(), and QQuickStateGroup::transitionsProperty().
void QQuickItemPrivate::updateOrAddGeometryChangeListener | ( | QQuickItemChangeListener * | listener, |
QQuickGeometryChange | types | ||
) |
Definition at line 3994 of file qquickitem.cpp.
References changeListeners, QQuickItemPrivate::ChangeListener::gTypes, and PRINT_LISTENERS.
Referenced by QQuickScrollIndicatorAttached::QQuickScrollIndicatorAttached(), QQuickTextAreaPrivate::attachFlickable(), QQuickMenu::contentItemChange(), QQuickMenuPrivate::insertItem(), and QQuickScrollBarAttachedPrivate::setFlickable().
void QQuickItemPrivate::updateOrAddItemChangeListener | ( | QQuickItemChangeListener * | listener, |
ChangeTypes | types | ||
) |
Definition at line 3972 of file qquickitem.cpp.
References changeListeners, PRINT_LISTENERS, and QQuickItemPrivate::ChangeListener::types.
Referenced by QQuickPopupPositioner::addAncestorListeners(), and QQuickScrollBarAttachedPrivate::setFlickable().
void QQuickItemPrivate::updateOrRemoveGeometryChangeListener | ( | QQuickItemChangeListener * | listener, |
QQuickGeometryChange | types | ||
) |
Definition at line 4008 of file qquickitem.cpp.
References changeListeners, QQuickItemPrivate::ChangeListener::gTypes, and PRINT_LISTENERS.
Referenced by QQuickTextAreaPrivate::detachFlickable().
|
inlinevirtual |
Reimplemented in QQuickShaderEffectPrivate, QQuickTableViewPrivate, and QQuickSplitViewPrivate.
Definition at line 697 of file qquickitem_p.h.
Referenced by QQuickWindowPrivate::polishItems().
void QQuickItemPrivate::updateSubFocusItem | ( | QQuickItem * | scope, |
bool | focus | ||
) |
Clears all sub focus items from scope.
If focus is true, sets the scope's subFocusItem to be this item.
Definition at line 1669 of file qquickitem.cpp.
References focus, get(), QQuickItem::parentItem(), Q_ASSERT, and subFocusItem.
Referenced by QQuickDeliveryAgentPrivate::clearFocusInScope(), QQuickItem::setFocus(), QQuickDeliveryAgentPrivate::setFocusInScope(), and QQuickItem::setParentItem().
QQuickAnchorLine QQuickItemPrivate::verticalCenter | ( | ) | const |
Definition at line 4434 of file qquickitem.cpp.
References QQuickAnchors::VCenterAnchor.
QQmlListProperty< QQuickItem > QQuickItemPrivate::visibleChildren | ( | ) |
Definition at line 5097 of file qquickitem.cpp.
References visibleChildren_at(), and visibleChildren_count().
|
static |
|
static |
Definition at line 3474 of file qquickitem.cpp.
References get(), i, and QQmlListProperty< T >::object.
Referenced by visibleChildren().
|
static |
Definition at line 3462 of file qquickitem.cpp.
References get(), and QQmlListProperty< T >::object.
Referenced by visibleChildren().
|
inline |
Definition at line 579 of file qquickitem_p.h.
Referenced by QQuickTextPrivate::setupTextLayout().
|
inline |
Definition at line 587 of file qquickitem_p.h.
Referenced by QQuickDesignerSupport::isValidHeight(), QQuickAnchorChanges::rewind(), QQuickAnchorChanges::saveOriginals(), and QQuickLoaderPrivate::setInitialState().
QTransform QQuickItemPrivate::windowToGlobalTransform | ( | ) | const |
Returns a transform that maps points from window space into global space.
Definition at line 3117 of file qquickitem.cpp.
References QTransform::fromTranslate(), pos, Q_UNLIKELY, QQuickRenderControl::renderWindowFor(), and window.
QTransform QQuickItemPrivate::windowToItemTransform | ( | ) | const |
Returns a transform that maps points from window space into item space.
Definition at line 3063 of file qquickitem.cpp.
References QTransform::inverted(), and itemToWindowTransform().
Referenced by QQuickFlickablePrivate::firstPointLocalVelocity(), QQuickItem::itemTransform(), and QQuickItem::mapRectToItem().
|
inline |
Definition at line 573 of file qquickitem_p.h.
Referenced by QWaylandMouseTrackerPrivate::handleMousePos().
|
inline |
Definition at line 576 of file qquickitem_p.h.
Referenced by QWaylandMouseTrackerPrivate::handleMousePos().
|
inline |
Definition at line 594 of file qquickitem_p.h.
Referenced by QQuickPathViewPrivate::getItem(), paintOrderChildItems(), and qquickitem_before_paintNode().
|
mutable |
Definition at line 427 of file qquickitem_p.h.
Referenced by anchors(), QQuickLayout::checkAnchors(), QQuickTableViewPrivate::createFxTableItem(), QQuickColumn::reportConflictingAnchors(), QQuickRow::reportConflictingAnchors(), QQuickGrid::reportConflictingAnchors(), QQuickFlow::reportConflictingAnchors(), QQuickSwipeViewPrivate::resizeItems(), setLayoutMirror(), and warnIfHorizontallyAnchored().
QQuickStateGroup* QQuickItemPrivate::_stateGroup |
Definition at line 440 of file qquickitem_p.h.
quint32 QQuickItemPrivate::activeFocus |
Definition at line 456 of file qquickitem_p.h.
Referenced by QQuickDeliveryAgentPrivate::clearFocusInScope(), QQuickDeliveryAgentPrivate::notifyFocusChangesRecur(), QQuickTextInputPrivate::processKeyEvent(), setEffectiveEnableRecur(), QQuickDeliveryAgentPrivate::setFocusInScope(), and QQuickEnterKeyAttached::setType().
quint32 QQuickItemPrivate::activeFocusOnTab |
Definition at line 476 of file qquickitem_p.h.
quint32 QQuickItemPrivate::antialiasing |
Definition at line 453 of file qquickitem_p.h.
Referenced by setImplicitAntialiasing().
quint32 QQuickItemPrivate::antialiasingValid |
Definition at line 478 of file qquickitem_p.h.
qreal QQuickItemPrivate::baselineOffset |
Definition at line 590 of file qquickitem_p.h.
Referenced by init(), and readBaselineOffset().
QVector<QQuickItemPrivate::ChangeListener> QQuickItemPrivate::changeListeners |
Definition at line 431 of file qquickitem_p.h.
Referenced by addItemChangeListener(), removeItemChangeListener(), updateOrAddGeometryChangeListener(), updateOrAddItemChangeListener(), and updateOrRemoveGeometryChangeListener().
QList<QQuickItem *> QQuickItemPrivate::childItems |
Definition at line 544 of file qquickitem_p.h.
Referenced by ~QQuickItemPrivate(), addChild(), derefWindow(), QQuickTumblerPrivate::determineViewType(), dumpItemTree(), QQuickAbstractButtonPrivate::findExclusiveButtons(), QQuickPageIndicatorPrivate::itemAt(), QV4::Heap::QQuickItemWrapper::markObjects(), markSortedChildrenDirty(), paintOrderChildItems(), recursiveRefFromEffectItem(), refWindow(), removeChild(), QQuickDayOfWeekRowPrivate::resizeItems(), QQuickMonthGridPrivate::resizeItems(), QQuickWeekNumberColumnPrivate::resizeItems(), setEffectiveEnableRecur(), setEffectiveVisibleRecur(), setHasCursorInChild(), setHasHoverInChild(), setImplicitLayoutMirror(), QQuickItem::stackAfter(), QQuickItem::stackBefore(), QQuickControlPrivate::updateFontRecur(), and QQuickControlPrivate::updateLocaleRecur().
quint32 QQuickItemPrivate::componentComplete |
Definition at line 448 of file qquickitem_p.h.
Referenced by _states(), anchors(), QQuickComboBoxPrivate::calculateWidestTextWidth(), QQuickIconLabelPrivate::createImage(), QQuickIconLabelPrivate::createLabel(), dirty(), QQuickScrollViewPrivate::flickableContentHeightChanged(), QQuickScrollViewPrivate::flickableContentWidthChanged(), QQuickFolderBreadcrumbBarPrivate::folderChanged(), QQuickComboBoxPrivate::getContentWidth(), QQuickDesignerSupport::isComponentComplete(), QQuickScrollViewPrivate::itemImplicitWidthChanged(), QQuickContainerPrivate::itemSiblingOrderChanged(), QQuickIconLabelPrivate::layout(), QQuickSplitViewPrivate::layout(), QQuickComboBoxPrivate::maybeUpdateImplicitContentWidth(), QQuickComboBoxPrivate::modelUpdated(), QQuickControlPrivate::setContentItem_helper(), QQuickComboBoxPrivate::setCurrentIndex(), setImplicitAntialiasing(), transformChanged(), QQuickIconLabelPrivate::updateOrSyncImage(), and QQuickIconLabelPrivate::updateOrSyncLabel().
quint32 QQuickItemPrivate::culled |
Definition at line 471 of file qquickitem_p.h.
Referenced by QQuickVisualTestUtils::delegateVisible(), QQuickDeliveryAgentPrivate::deliverHoverEventRecursive(), QQuickVisualTestUtils::findItems(), QQuickVisualTestUtils::findVisibleChild(), and setCulled().
quint32 QQuickItemPrivate::dirtyAttributes |
Definition at line 527 of file qquickitem_p.h.
Referenced by QQuickDesignerSupport::addDirty(), dirty(), QQuickDesignerSupport::isDirty(), QQuickDesignerSupport::resetDirty(), and QQuickWindowPrivate::updateDirtyNode().
quint32 QQuickItemPrivate::effectiveEnable |
Definition at line 463 of file qquickitem_p.h.
Referenced by calcEffectiveEnable(), QQuickAbstractButtonPrivate::click(), setEffectiveEnableRecur(), and QQuickAbstractButtonPrivate::trigger().
quint32 QQuickItemPrivate::effectiveLayoutMirror |
Definition at line 466 of file qquickitem_p.h.
Referenced by QQuickLayoutMirroringAttached::enabled(), QQuickBasePositionerPrivate::isLeftToRight(), QQuickKeyNavigationAttached::keyPressed(), QQuickKeyNavigationAttached::keyReleased(), QQuickAnchors::mirrored(), resolveLayoutMirror(), QQuickLayoutMirroringAttached::setEnabled(), setImplicitLayoutMirror(), and setLayoutMirror().
quint32 QQuickItemPrivate::effectiveVisible |
Definition at line 461 of file qquickitem_p.h.
Referenced by calcEffectiveVisible(), recursiveRefFromEffectItem(), and setEffectiveVisibleRecur().
quint32 QQuickItemPrivate::explicitEnable |
Definition at line 462 of file qquickitem_p.h.
Referenced by calcEffectiveEnable(), and setEffectiveEnableRecur().
quint32 QQuickItemPrivate::explicitVisible |
Definition at line 460 of file qquickitem_p.h.
Referenced by calcEffectiveVisible(), fetchNextNode(), QQuickBasePositioner::prePositioning(), qquickitem_before_paintNode(), setEffectiveVisibleRecur(), setVisible(), QQuickLayout::shouldIgnoreItem(), and QQuickWindowPrivate::updateDirtyNode().
QLazilyAllocated<ExtraData, ExtraDataTags> QQuickItemPrivate::extra |
Definition at line 422 of file qquickitem_p.h.
Referenced by QQuickEnterKeyAttached::QQuickEnterKeyAttached(), QQuickLayoutMirroringAttached::QQuickLayoutMirroringAttached(), QQuickScreenAttached::QQuickScreenAttached(), _q_resourceObjectDeleted(), acceptedMouseButtons(), addChild(), addPointerHandler(), anyPointerHandlerWants(), QQuickDeliveryAgentPrivate::deliverHoverEventToItem(), deliverShortcutOverrideEvent(), derefFromEffectItem(), derefWindow(), dumpItemTree(), ensureSubsceneDeliveryAgent(), fetchNextNode(), filterKeyEvent(), handlePointerEvent(), hasEnabledHoverHandlers(), hasPointerHandlers(), isTransparentForPositioner(), origin(), qquickitem_before_paintNode(), recursiveRefFromEffectItem(), refFromEffectItem(), refWindow(), removeChild(), removePointerHandler(), resources_append(), resources_at(), resources_clear(), resources_count(), resources_removeLast(), setCulled(), setLayoutMirror(), setTransparentForPositioner(), transformChanged(), QQuickWindowPrivate::updateDirtyNode(), and QQuickItemViewPrivate::updateViewport().
quint32 QQuickItemPrivate::filtersChildMouseEvents |
Definition at line 459 of file qquickitem_p.h.
Referenced by QQuickDeliveryAgentPrivate::sendFilteredMouseEvent().
quint32 QQuickItemPrivate::flags |
quint32 QQuickItemPrivate::focus |
Definition at line 454 of file qquickitem_p.h.
Referenced by QQuickTextEditPrivate::handleFocusEvent(), QQuickTextInputPrivate::handleFocusEvent(), QQuickDeliveryAgentPrivate::notifyFocusChangesRecur(), setEffectiveEnableRecur(), QQuickItem::setFocus(), QQuickDeliveryAgentPrivate::setFocusInScope(), QQuickItem::setParentItem(), and updateSubFocusItem().
quint32 QQuickItemPrivate::hasCursor |
Definition at line 473 of file qquickitem_p.h.
Referenced by setHasCursorInChild().
quint32 QQuickItemPrivate::hasCursorHandler |
Definition at line 487 of file qquickitem_p.h.
Referenced by QQuickPointerHandler::componentComplete().
quint32 QQuickItemPrivate::heightValidFlag |
Definition at line 447 of file qquickitem_p.h.
Referenced by QQuickPopupPositioner::reposition(), QQuickAnchorChanges::reverse(), and QQuickAnchorChanges::rewind().
quint32 QQuickItemPrivate::hoverEnabled |
Definition at line 451 of file qquickitem_p.h.
Referenced by QQuickDeliveryAgentPrivate::deliverHoverEventToItem(), QQuickControlPrivate::handleMove(), and setHasHoverInChild().
quint32 QQuickItemPrivate::implicitAntialiasing |
Definition at line 477 of file qquickitem_p.h.
Referenced by QQuickCanvasItemPrivate::QQuickCanvasItemPrivate(), QQuickTextPrivate::QQuickTextPrivate(), and setImplicitAntialiasing().
qreal QQuickItemPrivate::implicitHeight |
Definition at line 585 of file qquickitem_p.h.
Referenced by effectivePreferredHeight(), getImplicitHeight(), QQuickTextPrivate::getImplicitHeight(), QQuickPopupItemPrivate::implicitHeightChanged(), and QQuickIconLabelPrivate::updateImplicitSize().
qreal QQuickItemPrivate::implicitWidth |
Definition at line 584 of file qquickitem_p.h.
Referenced by effectivePreferredWidth(), getImplicitWidth(), QQuickTextPrivate::getImplicitWidth(), QQuickTextEditPrivate::getImplicitWidth(), QQuickTextInputPrivate::getImplicitWidth(), QQuickPopupItemPrivate::implicitWidthChanged(), and QQuickIconLabelPrivate::updateImplicitSize().
quint32 QQuickItemPrivate::inDestructor |
Definition at line 493 of file qquickitem_p.h.
Referenced by removeChild(), setEffectiveVisibleRecur(), and QQuickItem::setParentItem().
quint32 QQuickItemPrivate::inheritedLayoutMirror |
Definition at line 465 of file qquickitem_p.h.
Referenced by init(), resolveLayoutMirror(), and setImplicitLayoutMirror().
quint32 QQuickItemPrivate::inheritMirrorFromItem |
Definition at line 469 of file qquickitem_p.h.
Referenced by QQuickLayoutMirroringAttached::childrenInherit(), resolveLayoutMirror(), QQuickLayoutMirroringAttached::setChildrenInherit(), QQuickLayoutMirroringAttached::setEnabled(), and setImplicitLayoutMirror().
quint32 QQuickItemPrivate::inheritMirrorFromParent |
Definition at line 468 of file qquickitem_p.h.
Referenced by init(), resolveLayoutMirror(), and setImplicitLayoutMirror().
quint32 QQuickItemPrivate::isAccessible |
Definition at line 470 of file qquickitem_p.h.
Referenced by setAccessible(), setEffectiveEnableRecur(), and setEffectiveVisibleRecur().
quint32 QQuickItemPrivate::isMirrorImplicit |
Definition at line 467 of file qquickitem_p.h.
Referenced by QQuickLayoutMirroringAttached::resetEnabled(), resolveLayoutMirror(), QQuickLayoutMirroringAttached::setEnabled(), and setImplicitLayoutMirror().
quint32 QQuickItemPrivate::isTabFence |
Definition at line 484 of file qquickitem_p.h.
Referenced by nextPrevItemInTabFocusChain().
QSGTransformNode* QQuickItemPrivate::itemNodeInstance |
Definition at line 675 of file qquickitem_p.h.
Referenced by derefWindow(), itemNode(), and QQuickWindowPrivate::updateDirtyNode().
quint32 QQuickItemPrivate::keepMouse |
Definition at line 449 of file qquickitem_p.h.
quint32 QQuickItemPrivate::keepTouch |
Definition at line 450 of file qquickitem_p.h.
quint32 QQuickItemPrivate::maybeHasSubsceneDeliveryAgent |
Definition at line 489 of file qquickitem_p.h.
Referenced by QQuickDeliveryAgentPrivate::deliverPressOrReleaseEvent(), deliveryAgent(), and ensureSubsceneDeliveryAgent().
QQuickItem* QQuickItemPrivate::nextDirtyItem |
Definition at line 532 of file qquickitem_p.h.
Referenced by addToDirtyList(), and removeFromDirtyList().
quint32 QQuickItemPrivate::notifiedActiveFocus |
Definition at line 458 of file qquickitem_p.h.
Referenced by QQuickDeliveryAgentPrivate::notifyFocusChangesRecur().
quint32 QQuickItemPrivate::notifiedFocus |
Definition at line 457 of file qquickitem_p.h.
Referenced by QQuickDeliveryAgentPrivate::notifyFocusChangesRecur().
QSGNode* QQuickItemPrivate::paintNode |
Definition at line 676 of file qquickitem_p.h.
Referenced by derefWindow(), fetchNextNode(), QQuickWindowPrivate::updateDirtyNode(), and QQuickShaderEffect::updateUniformValue().
QQuickItem* QQuickItemPrivate::parentItem |
Definition at line 542 of file qquickitem_p.h.
Referenced by calcEffectiveEnable(), calcEffectiveVisible(), derefFromEffectItem(), derefWindow(), QQuickAbstractButtonPrivate::findExclusiveButtons(), itemToWindowTransform(), readParentItem(), refFromEffectItem(), refWindow(), resolveLayoutMirror(), setEffectiveVisibleRecur(), setVisible(), QQuickItem::stackAfter(), and QQuickItem::stackBefore().
quint32 QQuickItemPrivate::polishScheduled |
Definition at line 464 of file qquickitem_p.h.
Referenced by derefWindow(), QDeclarativeGeoMapItemBase::isPolishScheduled(), QQuickWindowPrivate::polishItems(), QQuickTest::qIsPolishScheduled(), QQuickTest::qWaitForPolish(), refWindow(), and QQuickTableViewPrivate::setCurrentIndexFromKeyEvent().
QQuickItem** QQuickItemPrivate::prevDirtyItem |
Definition at line 533 of file qquickitem_p.h.
Referenced by addToDirtyList(), dirty(), removeFromDirtyList(), and QQuickWindowPrivate::updateDirtyNodes().
quint32 QQuickItemPrivate::replayingPressEvent |
Definition at line 485 of file qquickitem_p.h.
Referenced by QQuickFlickablePrivate::replayDelayedPress(), and QQuickDeliveryAgentPrivate::sendFilteredMouseEvent().
quint32 QQuickItemPrivate::smooth |
Definition at line 452 of file qquickitem_p.h.
Referenced by QQuickShaderEffectSource::updatePaintNode().
|
mutable |
Definition at line 545 of file qquickitem_p.h.
Referenced by ~QQuickItemPrivate(), markSortedChildrenDirty(), and paintOrderChildItems().
QPointer<QQuickItem> QQuickItemPrivate::subFocusItem |
Definition at line 556 of file qquickitem_p.h.
Referenced by QQuickContainerPrivate::cleanup(), QQuickDeliveryAgentPrivate::clearFocusInScope(), debugFocusTree(), QQuickTableViewPrivate::releaseItem(), QQuickMenuPrivate::setCurrentIndex(), QQuickItem::setFocus(), QQuickDeliveryAgentPrivate::setFocusInScope(), QQuickItem::setParentItem(), and updateSubFocusItem().
quint32 QQuickItemPrivate::subtreeCursorEnabled |
Definition at line 474 of file qquickitem_p.h.
Referenced by addChild(), removeChild(), and setHasCursorInChild().
quint32 QQuickItemPrivate::subtreeHoverEnabled |
Definition at line 475 of file qquickitem_p.h.
Referenced by addChild(), QQuickDeliveryAgentPrivate::deliverHoverEvent(), QQuickDeliveryAgentPrivate::deliverHoverEventRecursive(), removeChild(), and setHasHoverInChild().
quint32 QQuickItemPrivate::subtreeTransformChangedEnabled |
Definition at line 492 of file qquickitem_p.h.
Referenced by itemChange(), and transformChanged().
quint32 QQuickItemPrivate::touchEnabled |
Definition at line 486 of file qquickitem_p.h.
QList<QQuickTransform *> QQuickItemPrivate::transforms |
Definition at line 592 of file qquickitem_p.h.
Referenced by itemToParentTransform(), QQuickWindowPrivate::updateDirtyNode(), and QQuickFlipablePrivate::updateSide().
quint32 QQuickItemPrivate::widthValidFlag |
Definition at line 446 of file qquickitem_p.h.
Referenced by QQuickPopupPositioner::reposition(), QQuickAnchorChanges::reverse(), and QQuickAnchorChanges::rewind().
QQuickWindow* QQuickItemPrivate::window |
Definition at line 537 of file qquickitem_p.h.
Referenced by addToDirtyList(), QQuickControlPrivate::calcLocale(), QQuickContainerPrivate::cleanup(), deliveryAgent(), derefWindow(), QQuickFlickablePrivate::devicePixelRatio(), dirty(), QQuickTableViewPrivate::dumpTable(), globalToWindowTransform(), QQuickSwipeDelegatePrivate::handleMouseMoveEvent(), QQuickTextEdit::hoveredLink(), QQuickLoaderPrivate::incubatorStateChanged(), QQuickWindowPrivate::init(), QQuickControlPrivate::parentFont(), QQuickMouseAreaPrivate::propagate(), refWindow(), QQuickTableViewPrivate::releaseItem(), QQuickFlickablePrivate::replayDelayedPress(), QQuickPopupItemPrivate::resolveFont(), QWaylandQuickItemPrivate::scaleFactor(), sceneGraphContext(), sceneGraphRenderContext(), setEffectiveVisibleRecur(), QQuickItem::setParentItem(), QQuickOverlayPrivate::updateGeometry(), QQuick3DTexture::updateSpatialNode(), and windowToGlobalTransform().
int QQuickItemPrivate::windowRefCount |
Definition at line 538 of file qquickitem_p.h.
Referenced by derefWindow(), QQuickWindowPrivate::init(), and refWindow().