Qt 4.8
Classes | Public Types | Public Functions | Static Public Functions | Public Variables | Static Public Variables | List of all members
QDeclarativeItemPrivate Class Reference

#include <qdeclarativeitem_p.h>

Inheritance diagram for QDeclarativeItemPrivate:
QGraphicsItemPrivate QDeclarativeFlickablePrivate QDeclarativeFlipablePrivate QDeclarativeGestureAreaPrivate QDeclarativeImplicitSizeItemPrivate QDeclarativeMouseAreaPrivate QDeclarativePaintedItemPrivate QDeclarativeParticlesPrivate QDeclarativePathViewPrivate QDeclarativePinchAreaPrivate QDeclarativeRectanglePrivate QDeclarativeRepeaterPrivate

Classes

struct  AnchorLines
 
struct  ChangeListener
 

Public Types

enum  ChangeType {
  Geometry = 0x01, SiblingOrder = 0x02, Visibility = 0x04, Opacity = 0x08,
  Destroyed = 0x10
}
 
- Public Types inherited from QGraphicsItemPrivate
enum  AncestorFlag {
  NoFlag = 0, AncestorHandlesChildEvents = 0x1, AncestorClipsChildren = 0x2, AncestorIgnoresTransformations = 0x4,
  AncestorFiltersChildEvents = 0x8
}
 
enum  Extra {
  ExtraToolTip, ExtraCursor, ExtraCacheData, ExtraMaxDeviceCoordCacheSize,
  ExtraBoundingRegionGranularity
}
 
enum  InvalidateReason { OpacityChanged }
 

Public Functions

QDeclarativeStateGroup_states ()
 
void addItemChangeListener (QDeclarativeItemChangeListener *listener, ChangeTypes types)
 
AnchorLinesanchorLines () const
 
QDeclarativeAnchorsanchors ()
 
QDeclarativeAnchorLine baseline () const
 
QDeclarativeAnchorLine bottom () const
 
QPointF computeTransformOrigin () const
 
QDeclarativeListProperty< QObjectdata ()
 
virtual void focusChanged (bool)
 
virtual void focusScopeItemChange (bool isSubFocusItem)
 Subclasses can reimplement this function to be notified when an item becomes a focusScopeItem (or is no longer a focusScopeItem). More...
 
qreal height () const
 
QDeclarativeAnchorLine horizontalCenter () const
 
virtual qreal implicitHeight () const
 
virtual void implicitHeightChanged ()
 
virtual qreal implicitWidth () const
 
virtual void implicitWidthChanged ()
 
void init (QDeclarativeItem *parent)
 
bool isMirrored () const
 
QDeclarativeAnchorLine left () const
 
virtual void mirrorChange ()
 
 QDeclarativeItemPrivate ()
 
void removeItemChangeListener (QDeclarativeItemChangeListener *, ChangeTypes types)
 
void resetHeight ()
 
void resetWidth ()
 
void resolveLayoutMirror ()
 
QDeclarativeListProperty< QObjectresources ()
 
QDeclarativeAnchorLine right () const
 
void setHeight (qreal)
 
void setImplicitLayoutMirror (bool mirror, bool inherit)
 
void setLayoutMirror (bool mirror)
 
virtual void setPosHelper (const QPointF &pos)
 Sets the position pos. More...
 
void setState (const QString &)
 
void setWidth (qreal)
 
virtual void siblingOrderChange ()
 Subclasses can reimplement this function to be notified when its siblingIndex order is changed. More...
 
QString state () const
 
QDeclarativeListProperty< QDeclarativeStatestates ()
 
QDeclarativeAnchorLine top () const
 
virtual void transformChanged ()
 
QDeclarativeListProperty< QDeclarativeTransitiontransitions ()
 
QDeclarativeAnchorLine verticalCenter () const
 
qreal width () const
 
- Public Functions inherited from QGraphicsItemPrivate
void addChild (QGraphicsItem *child)
 QGraphicsScenePrivate::registerTopLevelItem(). More...
 
void appendGraphicsTransform (QGraphicsTransform *t)
 
qreal calcEffectiveOpacity () const
 
void childrenBoundingRectHelper (QTransform *x, QRectF *rect, QGraphicsItem *topMostEffectItem)
 Returns the bounding rect of this item's children (excluding itself). More...
 
bool childrenClippedToShape () const
 
bool childrenCombineOpacity () const
 
QDeclarativeListProperty< QGraphicsObjectchildrenList ()
 Returns a list of this item's children. More...
 
void clearFocusHelper (bool giveFocusToParent)
 
void clearSubFocus (QGraphicsItem *rootItem=0, QGraphicsItem *stopItem=0)
 
qreal combineOpacityFromParent (qreal parentOpacity) const
 
void combineTransformFromParent (QTransform *x, const QTransform *viewTransform=0) const
 Combines this item's position and transform onto transform. More...
 
void combineTransformToParent (QTransform *x, const QTransform *viewTransform=0) const
 Combines this item's position and transform onto transform. More...
 
int depth () const
 
bool discardUpdateRequest (bool ignoreVisibleBit=false, bool ignoreDirtyBit=false, bool ignoreOpacity=false) const
 Returns true if we can discard an update request; otherwise false. More...
 
QRectF effectiveBoundingRect (QGraphicsItem *topMostEffectItem=0) const
 Returns the effective bounding rect of the item. More...
 
QRectF effectiveBoundingRect (const QRectF &rect) const
 Returns the effective bounding rect of the given item space rect. More...
 
qreal effectiveOpacity () const
 
void ensureSceneTransform ()
 
void ensureSceneTransformRecursive (QGraphicsItem **topMostDirtyItem)
 
void ensureSequentialSiblingIndex ()
 Ensures that the list of children is sorted by insertion order, and that the siblingIndexes are packed (no gaps), and start at 0. More...
 
void ensureSortedChildren ()
 
QVariant extra (Extra type) const
 
QGraphicsItemCacheextraItemCache () const
 
QPointF genericMapFromScene (const QPointF &pos, const QWidget *viewport) const
 Maps the point pos from scene to item coordinates. More...
 
bool hasTranslateOnlySceneTransform ()
 
void initStyleOption (QStyleOptionGraphicsItem *option, const QTransform &worldTransform, const QRegion &exposedRegion, bool allItems=false) const
 
virtual QVariant inputMethodQueryHelper (Qt::InputMethodQuery query) const
 This helper function helped us add input method query support in Qt 4. More...
 
void invalidateChildGraphicsEffectsRecursively (InvalidateReason reason)
 
void invalidateChildrenSceneTransform ()
 
void invalidateDepthRecursively ()
 
void invalidateParentGraphicsEffectsRecursively ()
 
bool isFullyTransparent () const
 
bool isInvisible () const
 
bool isOpacityNull () const
 
virtual bool isProxyWidget () const
 
bool itemIsUntransformable () const
 
void markParentDirty (bool updateBoundingRect=false)
 
QGraphicsItemCachemaybeExtraItemCache () const
 
void prependGraphicsTransform (QGraphicsTransform *t)
 
 QGraphicsItemPrivate ()
 
void remapItemPos (QEvent *event, QGraphicsItem *item)
 Maps any item pos properties of event to item's coordinate system. More...
 
void removeChild (QGraphicsItem *child)
 QGraphicsScenePrivate::unregisterTopLevelItem(). More...
 
void removeExtraItemCache ()
 
void resetFocusProxy ()
 Sets the focusProxy pointer to 0 for all items that have this item as their focusProxy. More...
 
void resolveDepth ()
 Resolves the stacking depth of this object and all its ancestors. More...
 
virtual void resolveFont (uint inheritedMask)
 
virtual void resolvePalette (uint inheritedMask)
 
QRectF sceneEffectiveBoundingRect () const
 Returns the effective bounding rect of this item in scene coordinates, by combining sceneTransform() with boundingRect(), taking into account the effect that the item might have. More...
 
void sendScenePosChange ()
 
void setEnabledHelper (bool newEnabled, bool explicitly, bool update=true)
 Sets this item's visibility to newEnabled. More...
 
void setExtra (Extra type, const QVariant &value)
 
void setFocusHelper (Qt::FocusReason focusReason, bool climb, bool focusFromHide)
 
void setIsMemberOfGroup (bool enabled)
 Propagates item group membership. More...
 
void setParentItemHelper (QGraphicsItem *parent, const QVariant *newParentVariant, const QVariant *thisPointerVariant)
 Make sure not to trigger any pure virtual function calls (e. More...
 
void setSubFocus (QGraphicsItem *rootItem=0, QGraphicsItem *stopItem=0)
 
void setTransformHelper (const QTransform &transform)
 Sets the transform transform. More...
 
void setVisibleHelper (bool newVisible, bool explicitly, bool update=true)
 Sets this item's visibility to newVisible. More...
 
virtual void subFocusItemChange ()
 Subclasses can reimplement this function to be notified when subFocusItem changes. More...
 
QTransform transformToParent () const
 
void unsetExtra (Extra type)
 
void updateAncestorFlag (QGraphicsItem::GraphicsItemFlag childFlag, AncestorFlag flag=NoFlag, bool enabled=false, bool root=true)
 Propagates the ancestor flag flag with value enabled to all this item's children. More...
 
void updateAncestorFlags ()
 
void updateChildWithGraphicsEffectFlagRecursively ()
 
void updatePaintedViewBoundingRects (bool updateChildren)
 
virtual void updateSceneTransformFromParent ()
 
virtual ~QGraphicsItemPrivate ()
 

Static Public Functions

static void data_append (QDeclarativeListProperty< QObject > *, QObject *)
 
static QObjectdata_at (QDeclarativeListProperty< QObject > *, int)
 
static void data_clear (QDeclarativeListProperty< QObject > *)
 
static int data_count (QDeclarativeListProperty< QObject > *)
 
static qint64 elapsed (QElapsedTimer &)
 
static QDeclarativeItemPrivateget (QDeclarativeItem *item)
 
static void parentProperty (QObject *o, void *rv, QDeclarativeNotifierEndpoint *e)
 
static void resources_append (QDeclarativeListProperty< QObject > *, QObject *)
 
static QObjectresources_at (QDeclarativeListProperty< QObject > *, int)
 
static void resources_clear (QDeclarativeListProperty< QObject > *)
 
static int resources_count (QDeclarativeListProperty< QObject > *)
 
static qint64 restart (QElapsedTimer &)
 
static void setConsistentTime (qint64 t)
 
static void start (QElapsedTimer &)
 
static void transform_append (QDeclarativeListProperty< QGraphicsTransform > *list, QGraphicsTransform *)
 
static QGraphicsTransformtransform_at (QDeclarativeListProperty< QGraphicsTransform > *list, int)
 
static void transform_clear (QDeclarativeListProperty< QGraphicsTransform > *list)
 
static int transform_count (QDeclarativeListProperty< QGraphicsTransform > *list)
 
- Static Public Functions inherited from QGraphicsItemPrivate
static void children_append (QDeclarativeListProperty< QGraphicsObject > *list, QGraphicsObject *item)
 
static QGraphicsObjectchildren_at (QDeclarativeListProperty< QGraphicsObject > *list, int)
 
static void children_clear (QDeclarativeListProperty< QGraphicsObject > *list)
 
static int children_count (QDeclarativeListProperty< QGraphicsObject > *list)
 
static const QGraphicsItemPrivateget (const QGraphicsItem *item)
 
static QGraphicsItemPrivateget (QGraphicsItem *item)
 
static bool insertionOrder (QGraphicsItem *a, QGraphicsItem *b)
 
static bool isOpacityNull (qreal opacity)
 
static bool movableAncestorIsSelected (const QGraphicsItem *item)
 

Public Variables

AnchorLines_anchorLines
 
QDeclarativeAnchors_anchors
 
QDeclarativeContents_contents
 
QDeclarativeStateGroup_stateGroup
 
QDeclarativeLayoutMirroringAttachedattachedLayoutDirection
 
QDeclarativeNullableValue< qrealbaselineOffset
 
QPODVector< ChangeListener, 4 > changeListeners
 
bool componentComplete:1
 
bool doneEventPreHandler: 1
 
bool effectiveLayoutMirror:1
 
bool hadActiveFocus:1
 
bool hadFocus:1
 
bool heightValid:1
 
bool inheritedLayoutMirror:1
 
bool inheritMirrorFromItem:1
 
bool inheritMirrorFromParent:1
 
bool isMirrorImplicit:1
 
bool keepMouse:1
 
QDeclarativeItemKeyFilterkeyHandler
 
qreal mHeight
 
qreal mImplicitHeight
 
qreal mImplicitWidth
 
qreal mWidth
 
QDeclarativeItem::TransformOrigin origin:5
 
QDeclarativeNotifier parentNotifier
 
bool smooth:1
 
bool transformOriginDirty: 1
 
bool widthValid:1
 
- Public Variables inherited from QGraphicsItemPrivate
quint32 acceptDrops: 1
 
quint32 acceptedMouseButtons: 5
 
quint32 acceptedTouchBeginEvent: 1
 
quint32 acceptsHover: 1
 
quint32 acceptTouchEvents: 1
 
quint32 allChildrenDirty: 1
 
quint32 ancestorFlags: 4
 
quint32 cacheMode: 2
 
QList< QGraphicsItem * > children
 
QRectF childrenBoundingRect
 
quint32 dirty: 1
 
quint32 dirtyChildren: 1
 
quint32 dirtyChildrenBoundingRect: 1
 
quint32 dirtySceneTransform: 1
 
quint32 enabled: 1
 
quint32 explicitActivate: 1
 
quint32 explicitlyDisabled: 1
 
quint32 explicitlyHidden: 1
 
QList< ExtraStructextras
 
quint32 filtersDescendantEvents: 1
 
quint32 flags: 19
 
QGraphicsItemfocusProxy
 
QList< QGraphicsItem ** > focusProxyRefs
 
QGraphicsItemfocusScopeItem
 
quint32 fullUpdatePending: 1
 
quint32 geometryChanged: 1
 
QMap< Qt::GestureType, Qt::GestureFlags > gestureContext
 
int globalStackingOrder
 
QGraphicsEffectgraphicsEffect
 
quint32 handlesChildEvents: 1
 
quint32 hasBoundingRegionGranularity: 1
 
quint32 hasCursor: 1
 
quint32 holesInSiblingIndex: 1
 
quint32 ignoreOpacity: 1
 
quint32 ignoreVisible: 1
 
Qt::InputMethodHints imHints
 
quint32 inDestructor: 1
 
int index
 
quint32 inSetPosHelper: 1
 
quint32 isDeclarativeItem: 1
 
quint32 isMemberOfGroup: 1
 
quint32 isObject: 1
 
quint32 isWidget: 1
 
int itemDepth
 
quint32 itemDiscovered: 1
 
quint32 localCollisionHack: 1
 
quint32 mayHaveChildWithGraphicsEffect: 1
 
quint32 mouseSetsFocus: 1
 
quint32 needSortChildren: 1
 
QRectF needsRepaint
 
quint32 notifyBoundingRectChanged: 1
 
quint32 notifyInvalidated: 1
 
qreal opacity
 
quint32 padding: 21
 
QMap< QWidget *, QRectpaintedViewBoundingRects
 
quint32 paintedViewBoundingRectsNeedRepaint: 1
 
QGraphicsItem::PanelModality panelModality
 
QGraphicsItemparent
 
quint32 pendingPolish: 1
 
QPointF pos
 
QGraphicsItemq_ptr
 
QGraphicsScenescene
 
quint32 scenePosDescendants: 1
 
QTransform sceneTransform
 
quint32 sceneTransformTranslateOnly: 1
 
quint32 selected: 1
 
quint32 sendParentChangeNotification: 1
 
quint32 sequentialOrdering: 1
 
int siblingIndex
 
QGraphicsItemsubFocusItem
 
TransformDatatransformData
 
quint32 updateDueToGraphicsEffect: 1
 
quint32 visible: 1
 
quint32 wantsActive: 1
 
qreal z
 

Static Public Variables

static qint64 consistentTime = -1
 

Detailed Description

Definition at line 117 of file qdeclarativeitem_p.h.

Enumerations

◆ ChangeType

Enumerator
Geometry 
SiblingOrder 
Visibility 
Opacity 
Destroyed 

Definition at line 253 of file qdeclarativeitem_p.h.

Constructors and Destructors

◆ QDeclarativeItemPrivate()

QDeclarativeItemPrivate::QDeclarativeItemPrivate ( )
inline

Definition at line 122 of file qdeclarativeitem_p.h.

123  : _anchors(0), _contents(0),
124  baselineOffset(0),
125  _anchorLines(0),
127  widthValid(false), heightValid(false),
128  componentComplete(true), keepMouse(false),
129  smooth(false), transformOriginDirty(true), doneEventPreHandler(false),
133  {
135  isDeclarativeItem = 1;
136  QGraphicsItemPrivate::flags = QGraphicsItem::GraphicsItemFlags(
140  }
QDeclarativeAnchors * _anchors
QDeclarativeLayoutMirroringAttached * attachedLayoutDirection
QDeclarativeItem::TransformOrigin origin
QDeclarativeNullableValue< qreal > baselineOffset
QDeclarativeItemKeyFilter * keyHandler
QDeclarativeStateGroup * _stateGroup
QDeclarativeContents * _contents

Functions

◆ _states()

QDeclarativeStateGroup * QDeclarativeItemPrivate::_states ( )

Definition at line 3228 of file qdeclarativeitem.cpp.

3229 {
3231  if (!_stateGroup) {
3233  if (!componentComplete)
3235  QObject::connect(_stateGroup, SIGNAL(stateChanged(QString)),
3236  q, SIGNAL(stateChanged(QString)));
3237  }
3238 
3239  return _stateGroup;
3240 }
The QString class provides a Unicode character string.
Definition: qstring.h:83
#define Q_Q(Class)
Definition: qglobal.h:2483
#define SIGNAL(a)
Definition: qobjectdefs.h:227
The QDeclarativeItem class provides the most basic of all visual items in QML.
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
Definition: qobject.cpp:2580
QDeclarativeStateGroup * _stateGroup
virtual void classBegin()
Invoked after class creation, but before any properties have been set.

◆ addItemChangeListener()

void QDeclarativeItemPrivate::addItemChangeListener ( QDeclarativeItemChangeListener listener,
ChangeTypes  types 
)
inline

◆ anchorLines()

AnchorLines* QDeclarativeItemPrivate::anchorLines ( ) const
inline

Definition at line 246 of file qdeclarativeitem_p.h.

246  {
247  Q_Q(const QDeclarativeItem);
248  if (!_anchorLines) _anchorLines =
249  new AnchorLines(const_cast<QDeclarativeItem *>(q));
250  return _anchorLines;
251  }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QDeclarativeItem class provides the most basic of all visual items in QML.

◆ anchors()

QDeclarativeAnchors* QDeclarativeItemPrivate::anchors ( )
inline

Definition at line 221 of file qdeclarativeitem_p.h.

Referenced by QDeclarativeAnchorChanges::clearBindings(), QDeclarativeAnchorChanges::execute(), QDeclarativeAnchorChanges::reverse(), and QDeclarativeAnchorChanges::saveCurrentValues().

221  {
222  if (!_anchors) {
224  _anchors = new QDeclarativeAnchors(q);
225  if (!componentComplete)
226  _anchors->classBegin();
227  }
228  return _anchors;
229  }
#define Q_Q(Class)
Definition: qglobal.h:2483
QDeclarativeAnchors * _anchors
The QDeclarativeItem class provides the most basic of all visual items in QML.

◆ baseline()

QDeclarativeAnchorLine QDeclarativeItemPrivate::baseline ( ) const
Warning
This function is not part of the public interface.

Definition at line 2531 of file qdeclarativeitem.cpp.

2532 {
2533  return anchorLines()->baseline;
2534 }
AnchorLines * anchorLines() const

◆ bottom()

QDeclarativeAnchorLine QDeclarativeItemPrivate::bottom ( ) const
Warning
This function is not part of the public interface.

Definition at line 2514 of file qdeclarativeitem.cpp.

2515 {
2516  return anchorLines()->bottom;
2517 }
AnchorLines * anchorLines() const

◆ computeTransformOrigin()

QPointF QDeclarativeItemPrivate::computeTransformOrigin ( ) const

Definition at line 3260 of file qdeclarativeitem.cpp.

3261 {
3262  Q_Q(const QDeclarativeItem);
3263 
3264  QRectF br = q->boundingRect();
3265 
3266  switch(origin) {
3267  default:
3269  return QPointF(0, 0);
3270  case QDeclarativeItem::Top:
3271  return QPointF(br.width() / 2., 0);
3273  return QPointF(br.width(), 0);
3275  return QPointF(0, br.height() / 2.);
3277  return QPointF(br.width() / 2., br.height() / 2.);
3279  return QPointF(br.width(), br.height() / 2.);
3281  return QPointF(0, br.height());
3283  return QPointF(br.width() / 2., br.height());
3285  return QPointF(br.width(), br.height());
3286  }
3287 }
The QPointF class defines a point in the plane using floating point precision.
Definition: qpoint.h:214
#define Q_Q(Class)
Definition: qglobal.h:2483
The QRectF class defines a rectangle in the plane using floating point precision. ...
Definition: qrect.h:511
The QDeclarativeItem class provides the most basic of all visual items in QML.
qreal height() const
Returns the height of the rectangle.
Definition: qrect.h:710
qreal width() const
Returns the width of the rectangle.
Definition: qrect.h:707
QDeclarativeItem::TransformOrigin origin

◆ data()

QDeclarativeListProperty< QObject > QDeclarativeItemPrivate::data ( )

Definition at line 2177 of file qdeclarativeitem.cpp.

2178 {
2183  );
2184 }
static void data_append(QDeclarativeListProperty< QObject > *, QObject *)
static QObject * data_at(QDeclarativeListProperty< QObject > *, int)
static void data_clear(QDeclarativeListProperty< QObject > *)
static int data_count(QDeclarativeListProperty< QObject > *)

◆ data_append()

void QDeclarativeItemPrivate::data_append ( QDeclarativeListProperty< QObject > *  prop,
QObject o 
)
static

Definition at line 1990 of file qdeclarativeitem.cpp.

Referenced by data().

1991 {
1992  if (!o)
1993  return;
1994 
1995  QDeclarativeItem *that = static_cast<QDeclarativeItem *>(prop->object);
1996 
1997  // This test is measurably (albeit only slightly) faster than qobject_cast<>()
1998  const QMetaObject *mo = o->metaObject();
1999  while (mo && mo != &QGraphicsObject::staticMetaObject) mo = mo->d.superdata;
2000 
2001  if (mo) {
2002  QGraphicsObject *graphicsObject = static_cast<QGraphicsObject *>(o);
2003  QDeclarativeItemPrivate *contentItemPrivate = static_cast<QDeclarativeItemPrivate *>(QGraphicsItemPrivate::get(graphicsObject));
2004  if (contentItemPrivate->componentComplete) {
2005  graphicsObject->setParentItem(that);
2006  } else {
2007  contentItemPrivate->setParentItemHelper(that, /*newParentVariant=*/0, /*thisPointerVariant=*/0);
2008  }
2009  } else {
2010  o->setParent(that);
2011  }
2012 }
The QMetaObject class contains meta-information about Qt objects.
Definition: qobjectdefs.h:304
void setParentItemHelper(QGraphicsItem *parent, const QVariant *newParentVariant, const QVariant *thisPointerVariant)
Make sure not to trigger any pure virtual function calls (e.
void setParentItem(QGraphicsItem *parent)
Sets this item&#39;s parent item to newParent.
static const QMetaObject staticMetaObject
This variable stores the meta-object for the class.
Definition: qobject.h:128
void setParent(QObject *)
Makes the object a child of parent.
Definition: qobject.cpp:1950
The QDeclarativeItem class provides the most basic of all visual items in QML.
const QMetaObject * superdata
Definition: qobjectdefs.h:469
struct QMetaObject::@38 d
static const QGraphicsItemPrivate * get(const QGraphicsItem *item)
The QGraphicsObject class provides a base class for all graphics items that require signals...
virtual const QMetaObject * metaObject() const
Returns a pointer to the meta-object of this object.

◆ data_at()

QObject * QDeclarativeItemPrivate::data_at ( QDeclarativeListProperty< QObject > *  prop,
int  i 
)
static

Definition at line 2047 of file qdeclarativeitem.cpp.

Referenced by data().

2048 {
2049  int resourcesCount = resources_count(prop);
2050  if (i < resourcesCount)
2051  return resources_at(prop, i);
2052  const int j = i - resourcesCount;
2053  if (j < children_count_helper(prop))
2054  return children_at_helper(prop, j);
2055  return 0;
2056 }
static int resources_count(QDeclarativeListProperty< QObject > *)
static QObject * resources_at(QDeclarativeListProperty< QObject > *, int)
static int children_count_helper(QDeclarativeListProperty< QObject > *prop)
static QObject * children_at_helper(QDeclarativeListProperty< QObject > *prop, int index)

◆ data_clear()

void QDeclarativeItemPrivate::data_clear ( QDeclarativeListProperty< QObject > *  prop)
static

Definition at line 2058 of file qdeclarativeitem.cpp.

Referenced by data().

2059 {
2060  resources_clear(prop);
2061  children_clear_helper(prop);
2062 }
static void children_clear_helper(QDeclarativeListProperty< QObject > *prop)
static void resources_clear(QDeclarativeListProperty< QObject > *)

◆ data_count()

int QDeclarativeItemPrivate::data_count ( QDeclarativeListProperty< QObject > *  prop)
static

Definition at line 2042 of file qdeclarativeitem.cpp.

Referenced by data().

2043 {
2044  return resources_count(prop) + children_count_helper(prop);
2045 }
static int resources_count(QDeclarativeListProperty< QObject > *)
static int children_count_helper(QDeclarativeListProperty< QObject > *prop)

◆ elapsed()

qint64 QDeclarativeItemPrivate::elapsed ( QElapsedTimer t)
static

Definition at line 4055 of file qdeclarativeitem.cpp.

Referenced by QDeclarativeFlickablePrivate::handleMouseMoveEvent(), QDeclarativePathViewPrivate::handleMouseReleaseEvent(), and QDeclarativeFlickablePrivate::handleMouseReleaseEvent().

4056 {
4058  return t.elapsed();
4059  else
4060  return ((QElapsedTimerConsistentTimeHack*)&t)->elapsed();
4061 }
qint64 elapsed() const
Returns the number of milliseconds since this QElapsedTimer was last started.

◆ focusChanged()

void QDeclarativeItemPrivate::focusChanged ( bool  flag)
virtual

Reimplemented in QDeclarativeTextInputPrivate, and QDeclarativeTextEditPrivate.

Definition at line 2981 of file qdeclarativeitem.cpp.

Referenced by QDeclarativeTextEditPrivate::focusChanged(), QDeclarativeTextInputPrivate::focusChanged(), and QDeclarativeTextInputPrivate::xToPos().

2982 {
2984 
2985  if (hadActiveFocus != flag) {
2986  hadActiveFocus = flag;
2987  emit q->activeFocusChanged(flag);
2988  }
2989 
2990  QDeclarativeItem *focusItem = q;
2991  for (QDeclarativeItem *p = q->parentItem(); p; p = p->parentItem()) {
2992  if (p->flags() & QGraphicsItem::ItemIsFocusScope) {
2993  if (!flag && QGraphicsItemPrivate::get(p)->focusScopeItem != focusItem)
2994  break;
2995  if (p->d_func()->hadActiveFocus != flag) {
2996  p->d_func()->hadActiveFocus = flag;
2997  emit p->activeFocusChanged(flag);
2998  }
2999  focusItem = p;
3000  }
3001  }
3002 
3003  // For all but the top most focus scope/item this will be called for us by QGraphicsItem.
3004  focusItem->d_func()->focusScopeItemChange(flag);
3005 }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QDeclarativeItem class provides the most basic of all visual items in QML.
#define emit
Definition: qobjectdefs.h:76
QDeclarativeItem * parentItem() const
Returns the QDeclarativeItem parent of this item.
QGraphicsItem * focusScopeItem
static const QGraphicsItemPrivate * get(const QGraphicsItem *item)

◆ focusScopeItemChange()

virtual void QDeclarativeItemPrivate::focusScopeItemChange ( bool  isSubFocusItem)
inlinevirtual

Subclasses can reimplement this function to be notified when an item becomes a focusScopeItem (or is no longer a focusScopeItem).

Warning
This function is not part of the public interface.

Reimplemented from QGraphicsItemPrivate.

Definition at line 316 of file qdeclarativeitem_p.h.

317  {
318  if (hadFocus != isSubFocusItem) {
319  hadFocus = isSubFocusItem;
320  emit q_func()->focusChanged(isSubFocusItem);
321  }
322  }
#define emit
Definition: qobjectdefs.h:76

◆ get()

static QDeclarativeItemPrivate* QDeclarativeItemPrivate::get ( QDeclarativeItem item)
inlinestatic

◆ height()

qreal QDeclarativeItemPrivate::height ( ) const
virtual
Warning
This function is not part of the public interface.

Reimplemented from QGraphicsItemPrivate.

Definition at line 3725 of file qdeclarativeitem.cpp.

3726 {
3727  return mHeight;
3728 }

◆ horizontalCenter()

QDeclarativeAnchorLine QDeclarativeItemPrivate::horizontalCenter ( ) const
Warning
This function is not part of the public interface.

Definition at line 2498 of file qdeclarativeitem.cpp.

2499 {
2500  return anchorLines()->hCenter;
2501 }
AnchorLines * anchorLines() const

◆ implicitHeight()

qreal QDeclarativeItemPrivate::implicitHeight ( ) const
virtual

Definition at line 3768 of file qdeclarativeitem.cpp.

3769 {
3770  return mImplicitHeight;
3771 }

◆ implicitHeightChanged()

void QDeclarativeItemPrivate::implicitHeightChanged ( )
virtual

Reimplemented in QDeclarativeImplicitSizePaintedItemPrivate, and QDeclarativeImplicitSizeItemPrivate.

Definition at line 3762 of file qdeclarativeitem.cpp.

3763 {
3765  emit q->implicitHeightChanged();
3766 }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QDeclarativeItem class provides the most basic of all visual items in QML.
#define emit
Definition: qobjectdefs.h:76

◆ implicitWidth()

qreal QDeclarativeItemPrivate::implicitWidth ( ) const
virtual

Reimplemented in QDeclarativeTextPrivate, and QDeclarativeTextEditPrivate.

Definition at line 3642 of file qdeclarativeitem.cpp.

3643 {
3644  return mImplicitWidth;
3645 }

◆ implicitWidthChanged()

void QDeclarativeItemPrivate::implicitWidthChanged ( )
virtual

Reimplemented in QDeclarativeImplicitSizePaintedItemPrivate, and QDeclarativeImplicitSizeItemPrivate.

Definition at line 3636 of file qdeclarativeitem.cpp.

3637 {
3639  emit q->implicitWidthChanged();
3640 }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QDeclarativeItem class provides the most basic of all visual items in QML.
#define emit
Definition: qobjectdefs.h:76

◆ init()

void QDeclarativeItemPrivate::init ( QDeclarativeItem parent)
inline

Definition at line 142 of file qdeclarativeitem_p.h.

Referenced by QDeclarativeTextInputPrivate::xToPos().

143  {
145  if (parent) {
147  q->setParentItem(parent);
148  QDeclarativeItemPrivate *parentPrivate = QDeclarativeItemPrivate::get(parent);
150  }
152  mouseSetsFocus = false;
153  }
void setImplicitLayoutMirror(bool mirror, bool inherit)
#define Q_Q(Class)
Definition: qglobal.h:2483
The QDeclarativeItem class provides the most basic of all visual items in QML.
static QDeclarativeItemPrivate * get(QDeclarativeItem *item)
QDeclarativeNullableValue< qreal > baselineOffset
void QDeclarative_setParent_noEvent(QObject *object, QObject *parent)
Makes the object a child of parent.

◆ isMirrored()

bool QDeclarativeItemPrivate::isMirrored ( ) const
inline

Definition at line 155 of file qdeclarativeitem_p.h.

155  {
156  return effectiveLayoutMirror;
157  }

◆ left()

QDeclarativeAnchorLine QDeclarativeItemPrivate::left ( ) const
Warning
This function is not part of the public interface.

Definition at line 2482 of file qdeclarativeitem.cpp.

2483 {
2484  return anchorLines()->left;
2485 }
AnchorLines * anchorLines() const

◆ mirrorChange()

virtual void QDeclarativeItemPrivate::mirrorChange ( )
inlinevirtual

◆ parentProperty()

void QDeclarativeItemPrivate::parentProperty ( QObject o,
void *  rv,
QDeclarativeNotifierEndpoint e 
)
static

Definition at line 2132 of file qdeclarativeitem.cpp.

Referenced by QDeclarativeFastProperties::QDeclarativeFastProperties().

2133 {
2134  QDeclarativeItem *item = static_cast<QDeclarativeItem*>(o);
2135  if (e)
2136  e->connect(&item->d_func()->parentNotifier);
2137  *((QDeclarativeItem **)rv) = item->parentItem();
2138 }
void connect(QObject *source, int sourceSignal)
The QDeclarativeItem class provides the most basic of all visual items in QML.
QDeclarativeItem * parentItem() const
Returns the QDeclarativeItem parent of this item.

◆ removeItemChangeListener()

void QDeclarativeItemPrivate::removeItemChangeListener ( QDeclarativeItemChangeListener listener,
ChangeTypes  types 
)

◆ resetHeight()

void QDeclarativeItemPrivate::resetHeight ( )
virtual
Warning
This function is not part of the public interface.

Reimplemented from QGraphicsItemPrivate.

Definition at line 3755 of file qdeclarativeitem.cpp.

3756 {
3758  heightValid = false;
3759  q->setImplicitHeight(q->implicitHeight());
3760 }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QDeclarativeItem class provides the most basic of all visual items in QML.

◆ resetWidth()

void QDeclarativeItemPrivate::resetWidth ( )
virtual
Warning
This function is not part of the public interface.

Reimplemented from QGraphicsItemPrivate.

Definition at line 3629 of file qdeclarativeitem.cpp.

3630 {
3632  widthValid = false;
3633  q->setImplicitWidth(q->implicitWidth());
3634 }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QDeclarativeItem class provides the most basic of all visual items in QML.

◆ resolveLayoutMirror()

void QDeclarativeItemPrivate::resolveLayoutMirror ( )

Definition at line 918 of file qdeclarativeitem.cpp.

Referenced by QDeclarativeLayoutMirroringAttached::resetEnabled(), QDeclarativeLayoutMirroringAttached::setChildrenInherit(), and QDeclarativeLayoutMirroringAttached::setEnabled().

919 {
921  if (QDeclarativeItem *parentItem = q->parentItem()) {
922  QDeclarativeItemPrivate *parentPrivate = QDeclarativeItemPrivate::get(parentItem);
924  } else {
926  }
927 }
void setImplicitLayoutMirror(bool mirror, bool inherit)
#define Q_Q(Class)
Definition: qglobal.h:2483
The QDeclarativeItem class provides the most basic of all visual items in QML.
static QDeclarativeItemPrivate * get(QDeclarativeItem *item)
QDeclarativeItem * parentItem() const
Returns the QDeclarativeItem parent of this item.

◆ resources()

QDeclarativeListProperty< QObject > QDeclarativeItemPrivate::resources ( )

Definition at line 3007 of file qdeclarativeitem.cpp.

3008 {
3013  );
3014 }
static int resources_count(QDeclarativeListProperty< QObject > *)
static QObject * resources_at(QDeclarativeListProperty< QObject > *, int)
static void resources_clear(QDeclarativeListProperty< QObject > *)
static void resources_append(QDeclarativeListProperty< QObject > *, QObject *)

◆ resources_append()

void QDeclarativeItemPrivate::resources_append ( QDeclarativeListProperty< QObject > *  prop,
QObject o 
)
static

Definition at line 2073 of file qdeclarativeitem.cpp.

Referenced by resources().

2074 {
2075  o->setParent(prop->object);
2076 }
void setParent(QObject *)
Makes the object a child of parent.
Definition: qobject.cpp:1950

◆ resources_at()

QObject * QDeclarativeItemPrivate::resources_at ( QDeclarativeListProperty< QObject > *  prop,
int  index 
)
static

Definition at line 2064 of file qdeclarativeitem.cpp.

Referenced by resources().

2065 {
2066  const QObjectList children = prop->object->children();
2067  if (index < children.count())
2068  return children.at(index);
2069  else
2070  return 0;
2071 }
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
const QObjectList & children() const
Returns a list of child objects.
Definition: qobject.h:197
QList< QGraphicsItem * > children

◆ resources_clear()

void QDeclarativeItemPrivate::resources_clear ( QDeclarativeListProperty< QObject > *  prop)
static

Definition at line 2083 of file qdeclarativeitem.cpp.

Referenced by resources().

2084 {
2085  const QObjectList children = prop->object->children();
2086  for (int index = 0; index < children.count(); index++)
2087  children.at(index)->setParent(0);
2088 }
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
void setParent(QObject *)
Makes the object a child of parent.
Definition: qobject.cpp:1950
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
const QObjectList & children() const
Returns a list of child objects.
Definition: qobject.h:197
QList< QGraphicsItem * > children

◆ resources_count()

int QDeclarativeItemPrivate::resources_count ( QDeclarativeListProperty< QObject > *  prop)
static

Definition at line 2078 of file qdeclarativeitem.cpp.

Referenced by resources().

2079 {
2080  return prop->object->children().count();
2081 }
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
const QObjectList & children() const
Returns a list of child objects.
Definition: qobject.h:197

◆ restart()

qint64 QDeclarativeItemPrivate::restart ( QElapsedTimer t)
static

Definition at line 4063 of file qdeclarativeitem.cpp.

Referenced by QDeclarativePathViewPrivate::handleMouseMoveEvent(), QDeclarativeFlickablePrivate::handleMouseMoveEvent(), and QDeclarativeFlickable::viewportMoved().

4064 {
4066  return t.restart();
4067  else
4068  return ((QElapsedTimerConsistentTimeHack*)&t)->restart();
4069 }
qint64 restart()
Restarts the timer and returns the time elapsed since the previous start.

◆ right()

QDeclarativeAnchorLine QDeclarativeItemPrivate::right ( ) const
Warning
This function is not part of the public interface.

Definition at line 2490 of file qdeclarativeitem.cpp.

2491 {
2492  return anchorLines()->right;
2493 }
AnchorLines * anchorLines() const

◆ setConsistentTime()

void QDeclarativeItemPrivate::setConsistentTime ( qint64  t)
static

Definition at line 4020 of file qdeclarativeitem.cpp.

4021 {
4022  consistentTime = t;
4023 }

◆ setHeight()

void QDeclarativeItemPrivate::setHeight ( qreal  h)
virtual
Warning
This function is not part of the public interface.

Reimplemented from QGraphicsItemPrivate.

Definition at line 3733 of file qdeclarativeitem.cpp.

3734 {
3736  if (qIsNaN(h))
3737  return;
3738 
3739  heightValid = true;
3740  if (mHeight == h)
3741  return;
3742 
3743  qreal oldHeight = mHeight;
3744 
3745  q->prepareGeometryChange();
3746  mHeight = h;
3747 
3748  q->geometryChanged(QRectF(q->x(), q->y(), width(), height()),
3749  QRectF(q->x(), q->y(), width(), oldHeight));
3750 }
double qreal
Definition: qglobal.h:1193
#define Q_Q(Class)
Definition: qglobal.h:2483
The QRectF class defines a rectangle in the plane using floating point precision. ...
Definition: qrect.h:511
The QDeclarativeItem class provides the most basic of all visual items in QML.
Q_CORE_EXPORT bool qIsNaN(double d)
Returns true if the double {d} is not a number (NaN).
Definition: qnumeric.cpp:55

◆ setImplicitLayoutMirror()

void QDeclarativeItemPrivate::setImplicitLayoutMirror ( bool  mirror,
bool  inherit 
)

Definition at line 929 of file qdeclarativeitem.cpp.

Referenced by setImplicitLayoutMirror().

930 {
931  inherit = inherit || inheritMirrorFromItem;
933  mirror = effectiveLayoutMirror;
934  if (mirror == inheritedLayoutMirror && inherit == inheritMirrorFromParent)
935  return;
936 
937  inheritMirrorFromParent = inherit;
939 
940  if (isMirrorImplicit)
941  setLayoutMirror(inherit ? inheritedLayoutMirror : false);
942  for (int i = 0; i < children.count(); ++i) {
943  if (QDeclarativeItem *child = qobject_cast<QDeclarativeItem *>(children.at(i))) {
946  }
947  }
948 }
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
void setImplicitLayoutMirror(bool mirror, bool inherit)
The QDeclarativeItem class provides the most basic of all visual items in QML.
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
static QDeclarativeItemPrivate * get(QDeclarativeItem *item)
void setLayoutMirror(bool mirror)
QList< QGraphicsItem * > children

◆ setLayoutMirror()

void QDeclarativeItemPrivate::setLayoutMirror ( bool  mirror)

Definition at line 950 of file qdeclarativeitem.cpp.

Referenced by QDeclarativeLayoutMirroringAttached::setEnabled().

951 {
952  if (mirror != effectiveLayoutMirror) {
953  effectiveLayoutMirror = mirror;
954  if (_anchors) {
955  _anchors->d_func()->fillChanged();
956  _anchors->d_func()->centerInChanged();
957  _anchors->d_func()->updateHorizontalAnchors();
958  }
959  mirrorChange();
962  }
963  }
964 }
QDeclarativeAnchors * _anchors
#define emit
Definition: qobjectdefs.h:76
QDeclarativeLayoutMirroringAttached * attachedLayoutDirection

◆ setPosHelper()

virtual void QDeclarativeItemPrivate::setPosHelper ( const QPointF pos)
inlinevirtual

Sets the position pos.

Warning
This function is not part of the public interface.

Reimplemented from QGraphicsItemPrivate.

Definition at line 307 of file qdeclarativeitem_p.h.

308  {
310  QRectF oldGeometry(this->pos.x(), this->pos.y(), mWidth, mHeight);
312  q->geometryChanged(QRectF(this->pos.x(), this->pos.y(), mWidth, mHeight), oldGeometry);
313  }
virtual void setPosHelper(const QPointF &pos)
Sets the position pos.
qreal x() const
Returns the x-coordinate of this point.
Definition: qpoint.h:282
#define Q_Q(Class)
Definition: qglobal.h:2483
The QRectF class defines a rectangle in the plane using floating point precision. ...
Definition: qrect.h:511
The QDeclarativeItem class provides the most basic of all visual items in QML.
qreal y() const
Returns the y-coordinate of this point.
Definition: qpoint.h:287

◆ setState()

void QDeclarativeItemPrivate::setState ( const QString state)

Definition at line 3163 of file qdeclarativeitem.cpp.

3164 {
3165  _states()->setState(state);
3166 }
QDeclarativeStateGroup * _states()
void setState(const QString &)

◆ setWidth()

void QDeclarativeItemPrivate::setWidth ( qreal  w)
virtual
Warning
This function is not part of the public interface.

Reimplemented from QGraphicsItemPrivate.

Definition at line 3607 of file qdeclarativeitem.cpp.

3608 {
3610  if (qIsNaN(w))
3611  return;
3612 
3613  widthValid = true;
3614  if (mWidth == w)
3615  return;
3616 
3617  qreal oldWidth = mWidth;
3618 
3619  q->prepareGeometryChange();
3620  mWidth = w;
3621 
3622  q->geometryChanged(QRectF(q->x(), q->y(), width(), height()),
3623  QRectF(q->x(), q->y(), oldWidth, height()));
3624 }
double qreal
Definition: qglobal.h:1193
#define Q_Q(Class)
Definition: qglobal.h:2483
The QRectF class defines a rectangle in the plane using floating point precision. ...
Definition: qrect.h:511
The QDeclarativeItem class provides the most basic of all visual items in QML.
Q_CORE_EXPORT bool qIsNaN(double d)
Returns true if the double {d} is not a number (NaN).
Definition: qnumeric.cpp:55

◆ siblingOrderChange()

virtual void QDeclarativeItemPrivate::siblingOrderChange ( )
inlinevirtual

Subclasses can reimplement this function to be notified when its siblingIndex order is changed.

Warning
This function is not part of the public interface.

Reimplemented from QGraphicsItemPrivate.

Definition at line 325 of file qdeclarativeitem_p.h.

326  {
328  for(int ii = 0; ii < changeListeners.count(); ++ii) {
332  }
333  }
334  }
#define Q_Q(Class)
Definition: qglobal.h:2483
virtual void itemSiblingOrderChanged(QDeclarativeItem *)
QDeclarativeItemPrivate::ChangeTypes types
The QDeclarativeItem class provides the most basic of all visual items in QML.
QPODVector< ChangeListener, 4 > changeListeners
QDeclarativeItemChangeListener * listener

◆ start()

void QDeclarativeItemPrivate::start ( QElapsedTimer t)
static

◆ state()

QString QDeclarativeItemPrivate::state ( ) const

Definition at line 3155 of file qdeclarativeitem.cpp.

3156 {
3157  if (!_stateGroup)
3158  return QString();
3159  else
3160  return _stateGroup->state();
3161 }
The QString class provides a Unicode character string.
Definition: qstring.h:83
QDeclarativeStateGroup * _stateGroup

◆ states()

QDeclarativeListProperty< QDeclarativeState > QDeclarativeItemPrivate::states ( )

Definition at line 3040 of file qdeclarativeitem.cpp.

3041 {
3042  return _states()->statesProperty();
3043 }
QDeclarativeStateGroup * _states()
QDeclarativeListProperty< QDeclarativeState > statesProperty()

◆ top()

QDeclarativeAnchorLine QDeclarativeItemPrivate::top ( ) const
Warning
This function is not part of the public interface.

Definition at line 2506 of file qdeclarativeitem.cpp.

2507 {
2508  return anchorLines()->top;
2509 }
AnchorLines * anchorLines() const

◆ transform_append()

void QDeclarativeItemPrivate::transform_append ( QDeclarativeListProperty< QGraphicsTransform > *  list,
QGraphicsTransform item 
)
static

Definition at line 2101 of file qdeclarativeitem.cpp.

2102 {
2103  QGraphicsObject *object = qobject_cast<QGraphicsObject *>(list->object);
2104  if (object && item) // QGraphicsItem applies the list in the wrong order, so we prepend.
2106 }
T qobject_cast(QObject *object)
Definition: qobject.h:375
void prependGraphicsTransform(QGraphicsTransform *t)
static const QGraphicsItemPrivate * get(const QGraphicsItem *item)
The QGraphicsObject class provides a base class for all graphics items that require signals...

◆ transform_at()

QGraphicsTransform * QDeclarativeItemPrivate::transform_at ( QDeclarativeListProperty< QGraphicsTransform > *  list,
int  idx 
)
static

Definition at line 2108 of file qdeclarativeitem.cpp.

2109 {
2110  QGraphicsObject *object = qobject_cast<QGraphicsObject *>(list->object);
2111  if (object) {
2113  if (!d->transformData)
2114  return 0;
2115  return d->transformData->graphicsTransforms.at(idx);
2116  } else {
2117  return 0;
2118  }
2119 }
T qobject_cast(QObject *object)
Definition: qobject.h:375
double d
Definition: qnumeric_p.h:62
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
QList< QGraphicsTransform * > graphicsTransforms
static const QGraphicsItemPrivate * get(const QGraphicsItem *item)
TransformData * transformData
The QGraphicsObject class provides a base class for all graphics items that require signals...

◆ transform_clear()

void QDeclarativeItemPrivate::transform_clear ( QDeclarativeListProperty< QGraphicsTransform > *  list)
static

Definition at line 2121 of file qdeclarativeitem.cpp.

2122 {
2123  QGraphicsObject *object = qobject_cast<QGraphicsObject *>(list->object);
2124  if (object) {
2126  if (!d->transformData)
2127  return;
2128  object->setTransformations(QList<QGraphicsTransform *>());
2129  }
2130 }
T qobject_cast(QObject *object)
Definition: qobject.h:375
double d
Definition: qnumeric_p.h:62
static const QGraphicsItemPrivate * get(const QGraphicsItem *item)
TransformData * transformData
The QGraphicsObject class provides a base class for all graphics items that require signals...
The QList class is a template class that provides lists.
Definition: qdatastream.h:62

◆ transform_count()

int QDeclarativeItemPrivate::transform_count ( QDeclarativeListProperty< QGraphicsTransform > *  list)
static

Definition at line 2090 of file qdeclarativeitem.cpp.

2091 {
2092  QGraphicsObject *object = qobject_cast<QGraphicsObject *>(list->object);
2093  if (object) {
2095  return d->transformData ? d->transformData->graphicsTransforms.size() : 0;
2096  } else {
2097  return 0;
2098  }
2099 }
T qobject_cast(QObject *object)
Definition: qobject.h:375
double d
Definition: qnumeric_p.h:62
QList< QGraphicsTransform * > graphicsTransforms
int size() const
Returns the number of items in the list.
Definition: qlist.h:137
static const QGraphicsItemPrivate * get(const QGraphicsItem *item)
TransformData * transformData
The QGraphicsObject class provides a base class for all graphics items that require signals...

◆ transformChanged()

void QDeclarativeItemPrivate::transformChanged ( )
virtual

Reimplemented from QGraphicsItemPrivate.

Definition at line 3422 of file qdeclarativeitem.cpp.

3423 {
3425  if (transformOriginDirty) {
3426  q->QGraphicsItem::setTransformOriginPoint(computeTransformOrigin());
3427  transformOriginDirty = false;
3428  }
3429 }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QDeclarativeItem class provides the most basic of all visual items in QML.
QPointF computeTransformOrigin() const

◆ transitions()

QDeclarativeListProperty< QDeclarativeTransition > QDeclarativeItemPrivate::transitions ( )

Definition at line 3070 of file qdeclarativeitem.cpp.

3071 {
3072  return _states()->transitionsProperty();
3073 }
QDeclarativeStateGroup * _states()
QDeclarativeListProperty< QDeclarativeTransition > transitionsProperty()

◆ verticalCenter()

QDeclarativeAnchorLine QDeclarativeItemPrivate::verticalCenter ( ) const
Warning
This function is not part of the public interface.

Definition at line 2522 of file qdeclarativeitem.cpp.

2523 {
2524  return anchorLines()->vCenter;
2525 }
AnchorLines * anchorLines() const

◆ width()

qreal QDeclarativeItemPrivate::width ( ) const
virtual
Warning
This function is not part of the public interface. Return the width of the item

Reimplemented from QGraphicsItemPrivate.

Definition at line 3599 of file qdeclarativeitem.cpp.

3600 {
3601  return mWidth;
3602 }

Properties

◆ _anchorLines

AnchorLines* QDeclarativeItemPrivate::_anchorLines
mutable

Definition at line 245 of file qdeclarativeitem_p.h.

◆ _anchors

QDeclarativeAnchors* QDeclarativeItemPrivate::_anchors

◆ _contents

QDeclarativeContents* QDeclarativeItemPrivate::_contents

Definition at line 231 of file qdeclarativeitem_p.h.

◆ _stateGroup

QDeclarativeStateGroup* QDeclarativeItemPrivate::_stateGroup

Definition at line 277 of file qdeclarativeitem_p.h.

◆ attachedLayoutDirection

QDeclarativeLayoutMirroringAttached* QDeclarativeItemPrivate::attachedLayoutDirection

◆ baselineOffset

QDeclarativeNullableValue<qreal> QDeclarativeItemPrivate::baselineOffset

Definition at line 233 of file qdeclarativeitem_p.h.

◆ changeListeners

QPODVector<ChangeListener,4> QDeclarativeItemPrivate::changeListeners

Definition at line 274 of file qdeclarativeitem_p.h.

◆ componentComplete

bool QDeclarativeItemPrivate::componentComplete

Definition at line 282 of file qdeclarativeitem_p.h.

Referenced by children_clear_helper(), and data_append().

◆ consistentTime

qint64 QDeclarativeItemPrivate::consistentTime = -1
static

◆ doneEventPreHandler

bool QDeclarativeItemPrivate::doneEventPreHandler

Definition at line 286 of file qdeclarativeitem_p.h.

◆ effectiveLayoutMirror

bool QDeclarativeItemPrivate::effectiveLayoutMirror

◆ hadActiveFocus

bool QDeclarativeItemPrivate::hadActiveFocus

Definition at line 293 of file qdeclarativeitem_p.h.

◆ hadFocus

bool QDeclarativeItemPrivate::hadFocus

Definition at line 292 of file qdeclarativeitem_p.h.

◆ heightValid

bool QDeclarativeItemPrivate::heightValid

◆ inheritedLayoutMirror

bool QDeclarativeItemPrivate::inheritedLayoutMirror

Definition at line 287 of file qdeclarativeitem_p.h.

Referenced by init(), and resolveLayoutMirror().

◆ inheritMirrorFromItem

bool QDeclarativeItemPrivate::inheritMirrorFromItem

◆ inheritMirrorFromParent

bool QDeclarativeItemPrivate::inheritMirrorFromParent

Definition at line 290 of file qdeclarativeitem_p.h.

Referenced by init(), and resolveLayoutMirror().

◆ isMirrorImplicit

bool QDeclarativeItemPrivate::isMirrorImplicit

◆ keepMouse

bool QDeclarativeItemPrivate::keepMouse

Definition at line 283 of file qdeclarativeitem_p.h.

◆ keyHandler

QDeclarativeItemKeyFilter* QDeclarativeItemPrivate::keyHandler

◆ mHeight

qreal QDeclarativeItemPrivate::mHeight

Definition at line 298 of file qdeclarativeitem_p.h.

◆ mImplicitHeight

qreal QDeclarativeItemPrivate::mImplicitHeight

Definition at line 300 of file qdeclarativeitem_p.h.

◆ mImplicitWidth

qreal QDeclarativeItemPrivate::mImplicitWidth

Definition at line 299 of file qdeclarativeitem_p.h.

◆ mWidth

qreal QDeclarativeItemPrivate::mWidth

Definition at line 297 of file qdeclarativeitem_p.h.

◆ origin

QDeclarativeItem::TransformOrigin QDeclarativeItemPrivate::origin

Definition at line 279 of file qdeclarativeitem_p.h.

◆ parentNotifier

QDeclarativeNotifier QDeclarativeItemPrivate::parentNotifier

Definition at line 218 of file qdeclarativeitem_p.h.

◆ smooth

bool QDeclarativeItemPrivate::smooth

Definition at line 284 of file qdeclarativeitem_p.h.

◆ transformOriginDirty

bool QDeclarativeItemPrivate::transformOriginDirty

Definition at line 285 of file qdeclarativeitem_p.h.

◆ widthValid

bool QDeclarativeItemPrivate::widthValid

The documentation for this class was generated from the following files: