Qt 4.8
|
#include <qdeclarativeflickable_p_p.h>
Classes | |
struct | AxisData |
struct | Velocity |
Public Types | |
enum | FixupMode { Normal, Immediate, ExtentChanged } |
Public Types inherited from QDeclarativeItemPrivate | |
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 | |
void | captureDelayedPress (QGraphicsSceneMouseEvent *event) |
void | clearDelayedPress () |
virtual void | fixup (AxisData &data, qreal minExtent, qreal maxExtent) |
void | fixupX () |
void | fixupY () |
virtual void | flick (AxisData &data, qreal minExtent, qreal maxExtent, qreal vSize, QDeclarativeTimeLineCallback::Callback fixupCallback, qreal velocity) |
void | flickX (qreal velocity) |
void | flickY (qreal velocity) |
void | handleMouseMoveEvent (QGraphicsSceneMouseEvent *) |
void | handleMousePressEvent (QGraphicsSceneMouseEvent *) |
void | handleMouseReleaseEvent (QGraphicsSceneMouseEvent *) |
void | init () |
bool | isOutermostPressDelay () const |
void | itemGeometryChanged (QDeclarativeItem *, const QRectF &, const QRectF &) |
qreal | overShootDistance (qreal size) |
QDeclarativeFlickablePrivate () | |
void | setRoundedViewportX (qreal x) |
void | setRoundedViewportY (qreal y) |
void | updateBeginningEnd () |
void | updateVelocity () |
Public Functions inherited from QDeclarativeItemPrivate | |
QDeclarativeStateGroup * | _states () |
void | addItemChangeListener (QDeclarativeItemChangeListener *listener, ChangeTypes types) |
AnchorLines * | anchorLines () const |
QDeclarativeAnchors * | anchors () |
QDeclarativeAnchorLine | baseline () const |
QDeclarativeAnchorLine | bottom () const |
QPointF | computeTransformOrigin () const |
QDeclarativeListProperty< QObject > | data () |
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< QObject > | resources () |
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< QDeclarativeState > | states () |
QDeclarativeAnchorLine | top () const |
virtual void | transformChanged () |
QDeclarativeListProperty< QDeclarativeTransition > | transitions () |
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< QGraphicsObject > | childrenList () |
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 |
QGraphicsItemCache * | extraItemCache () 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) |
QGraphicsItemCache * | maybeExtraItemCache () 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 () |
Public Functions inherited from QDeclarativeItemChangeListener | |
virtual QDeclarativeAnchorsPrivate * | anchorPrivate () |
virtual void | itemDestroyed (QDeclarativeItem *) |
virtual void | itemOpacityChanged (QDeclarativeItem *) |
virtual void | itemSiblingOrderChanged (QDeclarativeItem *) |
virtual void | itemVisibilityChanged (QDeclarativeItem *) |
Additional Inherited Members | |
Static Public Variables inherited from QDeclarativeItemPrivate | |
static qint64 | consistentTime = -1 |
Definition at line 78 of file qdeclarativeflickable_p_p.h.
Enumerator | |
---|---|
Normal | |
Immediate | |
ExtentChanged |
Definition at line 183 of file qdeclarativeflickable_p_p.h.
QDeclarativeFlickablePrivate::QDeclarativeFlickablePrivate | ( | ) |
Definition at line 167 of file qdeclarativeflickable.cpp.
void QDeclarativeFlickablePrivate::captureDelayedPress | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 1056 of file qdeclarativeflickable.cpp.
void QDeclarativeFlickablePrivate::clearDelayedPress | ( | ) |
Definition at line 1086 of file qdeclarativeflickable.cpp.
|
static |
Definition at line 1253 of file qdeclarativeflickable.cpp.
Referenced by data_clear().
|
static |
Definition at line 1274 of file qdeclarativeflickable.cpp.
Referenced by data_clear().
|
static |
Definition at line 1292 of file qdeclarativeflickable.cpp.
|
static |
Definition at line 1268 of file qdeclarativeflickable.cpp.
Referenced by data_clear().
|
virtual |
Reimplemented in QDeclarativeListViewPrivate, and QDeclarativeGridViewPrivate.
Definition at line 337 of file qdeclarativeflickable.cpp.
Referenced by QDeclarativeGridViewPrivate::fixup(), QDeclarativeListViewPrivate::fixup(), fixupX(), fixupY(), and flick().
void QDeclarativeFlickablePrivate::fixupX | ( | ) |
Definition at line 325 of file qdeclarativeflickable.cpp.
|
static |
Definition at line 320 of file qdeclarativeflickable.cpp.
Referenced by flickX().
void QDeclarativeFlickablePrivate::fixupY | ( | ) |
Definition at line 331 of file qdeclarativeflickable.cpp.
|
static |
Definition at line 315 of file qdeclarativeflickable.cpp.
Referenced by flickY().
|
virtual |
Reimplemented in QDeclarativeListViewPrivate, and QDeclarativeGridViewPrivate.
Definition at line 267 of file qdeclarativeflickable.cpp.
Referenced by QDeclarativeGridViewPrivate::flick(), QDeclarativeListViewPrivate::flick(), flickX(), and flickY().
void QDeclarativeFlickablePrivate::flickX | ( | qreal | velocity | ) |
Definition at line 255 of file qdeclarativeflickable.cpp.
void QDeclarativeFlickablePrivate::flickY | ( | qreal | velocity | ) |
Definition at line 261 of file qdeclarativeflickable.cpp.
void QDeclarativeFlickablePrivate::handleMouseMoveEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 814 of file qdeclarativeflickable.cpp.
void QDeclarativeFlickablePrivate::handleMousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 785 of file qdeclarativeflickable.cpp.
void QDeclarativeFlickablePrivate::handleMouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 918 of file qdeclarativeflickable.cpp.
void QDeclarativeFlickablePrivate::init | ( | ) |
Definition at line 182 of file qdeclarativeflickable.cpp.
bool QDeclarativeFlickablePrivate::isOutermostPressDelay | ( | ) | const |
Definition at line 1042 of file qdeclarativeflickable.cpp.
|
virtual |
Reimplemented from QDeclarativeItemChangeListener.
Reimplemented in QDeclarativeListViewPrivate, and QDeclarativeGridViewPrivate.
Definition at line 244 of file qdeclarativeflickable.cpp.
Referenced by QDeclarativeGridViewPrivate::itemGeometryChanged(), and QDeclarativeListViewPrivate::itemGeometryChanged().
Definition at line 212 of file qdeclarativeflickable.cpp.
void QDeclarativeFlickablePrivate::setRoundedViewportX | ( | qreal | x | ) |
Definition at line 1095 of file qdeclarativeflickable.cpp.
void QDeclarativeFlickablePrivate::setRoundedViewportY | ( | qreal | y | ) |
Definition at line 1100 of file qdeclarativeflickable.cpp.
void QDeclarativeFlickablePrivate::updateBeginningEnd | ( | ) |
Definition at line 385 of file qdeclarativeflickable.cpp.
void QDeclarativeFlickablePrivate::updateVelocity | ( | ) |
Definition at line 1855 of file qdeclarativeflickable.cpp.
Referenced by QDeclarativeFlickablePrivate::AxisData::reset(), and QDeclarativeFlickablePrivate::Velocity::setValue().
QDeclarativeFlickable::BoundsBehavior QDeclarativeFlickablePrivate::boundsBehavior |
Definition at line 194 of file qdeclarativeflickable_p_p.h.
Referenced by flick().
bool QDeclarativeFlickablePrivate::calcVelocity |
Definition at line 167 of file qdeclarativeflickable_p_p.h.
QDeclarativeItem* QDeclarativeFlickablePrivate::contentItem |
Definition at line 156 of file qdeclarativeflickable_p_p.h.
Referenced by init(), and itemGeometryChanged().
qreal QDeclarativeFlickablePrivate::deceleration |
Definition at line 172 of file qdeclarativeflickable_p_p.h.
Referenced by flick().
QGraphicsSceneMouseEvent* QDeclarativeFlickablePrivate::delayedPressEvent |
Definition at line 177 of file qdeclarativeflickable_p_p.h.
QGraphicsItem* QDeclarativeFlickablePrivate::delayedPressTarget |
Definition at line 178 of file qdeclarativeflickable_p_p.h.
QBasicTimer QDeclarativeFlickablePrivate::delayedPressTimer |
Definition at line 179 of file qdeclarativeflickable_p_p.h.
int QDeclarativeFlickablePrivate::fixupDuration |
Definition at line 181 of file qdeclarativeflickable_p_p.h.
Referenced by fixup().
FixupMode QDeclarativeFlickablePrivate::fixupMode |
Definition at line 184 of file qdeclarativeflickable_p_p.h.
Referenced by fixup().
QDeclarativeFlickable::FlickableDirection QDeclarativeFlickablePrivate::flickableDirection |
Definition at line 193 of file qdeclarativeflickable_p_p.h.
AxisData QDeclarativeFlickablePrivate::hData |
Definition at line 158 of file qdeclarativeflickable_p_p.h.
Referenced by fixupX(), flick(), flickX(), updateBeginningEnd(), and QDeclarativeFlickableVisibleArea::updateVisible().
bool QDeclarativeFlickablePrivate::hMoved |
Definition at line 162 of file qdeclarativeflickable_p_p.h.
bool QDeclarativeFlickablePrivate::interactive |
Definition at line 166 of file qdeclarativeflickable_p_p.h.
QPointF QDeclarativeFlickablePrivate::lastFlickablePosition |
Definition at line 175 of file qdeclarativeflickable_p_p.h.
QPointF QDeclarativeFlickablePrivate::lastPos |
Definition at line 169 of file qdeclarativeflickable_p_p.h.
QElapsedTimer QDeclarativeFlickablePrivate::lastPosTime |
Definition at line 168 of file qdeclarativeflickable_p_p.h.
Referenced by init().
qreal QDeclarativeFlickablePrivate::maxVelocity |
Definition at line 173 of file qdeclarativeflickable_p_p.h.
Referenced by QDeclarativeFlickablePrivate::AxisData::addVelocitySample(), flick(), overShootDistance(), and QDeclarativeFlickablePrivate::AxisData::reset().
int QDeclarativeFlickablePrivate::pressDelay |
Definition at line 180 of file qdeclarativeflickable_p_p.h.
bool QDeclarativeFlickablePrivate::pressed |
Definition at line 165 of file qdeclarativeflickable_p_p.h.
QPointF QDeclarativeFlickablePrivate::pressPos |
Definition at line 170 of file qdeclarativeflickable_p_p.h.
QElapsedTimer QDeclarativeFlickablePrivate::pressTime |
Definition at line 171 of file qdeclarativeflickable_p_p.h.
qreal QDeclarativeFlickablePrivate::reportedVelocitySmoothing |
Definition at line 176 of file qdeclarativeflickable_p_p.h.
bool QDeclarativeFlickablePrivate::stealMouse |
Definition at line 164 of file qdeclarativeflickable_p_p.h.
QDeclarativeTimeLine QDeclarativeFlickablePrivate::timeline |
Definition at line 161 of file qdeclarativeflickable_p_p.h.
AxisData QDeclarativeFlickablePrivate::vData |
Definition at line 159 of file qdeclarativeflickable_p_p.h.
Referenced by fixupY(), flick(), flickY(), updateBeginningEnd(), and QDeclarativeFlickableVisibleArea::updateVisible().
QElapsedTimer QDeclarativeFlickablePrivate::velocityTime |
Definition at line 174 of file qdeclarativeflickable_p_p.h.
QDeclarativeTimeLine QDeclarativeFlickablePrivate::velocityTimeline |
Definition at line 191 of file qdeclarativeflickable_p_p.h.
QDeclarativeFlickableVisibleArea* QDeclarativeFlickablePrivate::visibleArea |
Definition at line 192 of file qdeclarativeflickable_p_p.h.
Referenced by updateBeginningEnd().
bool QDeclarativeFlickablePrivate::vMoved |
Definition at line 163 of file qdeclarativeflickable_p_p.h.
int QDeclarativeFlickablePrivate::vTime |
Definition at line 190 of file qdeclarativeflickable_p_p.h.
Referenced by fixup().