Qt 4.8
|
#include <qdeclarativepathview_p_p.h>
Public Types | |
enum | MovementDirection { Shortest, Negative, Positive } |
enum | MovementReason { Other, SetIndex, Mouse } |
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 | |
QDeclarativePathViewAttached * | attached (QDeclarativeItem *item) |
int | calcCurrentIndex () |
void | clear () |
void | createHighlight () |
void | fixOffset () |
QDeclarativeItem * | getItem (int modelIndex) |
void | handleMouseMoveEvent (QGraphicsSceneMouseEvent *event) |
void | handleMousePressEvent (QGraphicsSceneMouseEvent *event) |
void | handleMouseReleaseEvent (QGraphicsSceneMouseEvent *) |
void | init () |
bool | isValid () const |
void | itemGeometryChanged (QDeclarativeItem *item, const QRectF &newGeometry, const QRectF &oldGeometry) |
QPointF | pointNear (const QPointF &point, qreal *nearPercent=0) const |
qreal | positionOfIndex (qreal index) const |
QDeclarativePathViewPrivate () | |
void | regenerate () |
void | releaseItem (QDeclarativeItem *item) |
void | scheduleLayout () |
void | setAdjustedOffset (qreal offset) |
void | setHighlightPosition (qreal pos) |
void | setOffset (qreal offset) |
void | snapToCurrent () |
void | updateCurrent () |
void | updateHighlight () |
void | updateItem (QDeclarativeItem *, qreal) |
void | updateMappedRange () |
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 71 of file qdeclarativepathview_p_p.h.
Enumerator | |
---|---|
Shortest | |
Negative | |
Positive |
Definition at line 176 of file qdeclarativepathview_p_p.h.
Enumerator | |
---|---|
Other | |
SetIndex | |
Mouse |
Definition at line 174 of file qdeclarativepathview_p_p.h.
|
inline |
Definition at line 76 of file qdeclarativepathview_p_p.h.
QDeclarativePathViewAttached * QDeclarativePathViewPrivate::attached | ( | QDeclarativeItem * | item | ) |
Definition at line 153 of file qdeclarativepathview.cpp.
Referenced by itemGeometryChanged(), and scheduleLayout().
int QDeclarativePathViewPrivate::calcCurrentIndex | ( | ) |
Definition at line 1716 of file qdeclarativepathview.cpp.
Referenced by isValid().
void QDeclarativePathViewPrivate::clear | ( | ) |
Definition at line 158 of file qdeclarativepathview.cpp.
Referenced by scheduleLayout().
void QDeclarativePathViewPrivate::createHighlight | ( | ) |
Definition at line 199 of file qdeclarativepathview.cpp.
Referenced by scheduleLayout().
void QDeclarativePathViewPrivate::fixOffset | ( | ) |
Definition at line 1767 of file qdeclarativepathview.cpp.
Referenced by isValid().
|
static |
QDeclarativeItem * QDeclarativePathViewPrivate::getItem | ( | int | modelIndex | ) |
Definition at line 113 of file qdeclarativepathview.cpp.
Referenced by scheduleLayout().
void QDeclarativePathViewPrivate::handleMouseMoveEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 1227 of file qdeclarativepathview.cpp.
Referenced by isValid().
void QDeclarativePathViewPrivate::handleMousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 1180 of file qdeclarativepathview.cpp.
Referenced by isValid().
void QDeclarativePathViewPrivate::handleMouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | ) |
Definition at line 1278 of file qdeclarativepathview.cpp.
Referenced by isValid().
void QDeclarativePathViewPrivate::init | ( | ) |
Definition at line 94 of file qdeclarativepathview.cpp.
Referenced by QDeclarativePathViewPrivate().
|
inline |
Definition at line 122 of file qdeclarativepathview_p_p.h.
|
inlinevirtual |
Reimplemented from QDeclarativeItemChangeListener.
Definition at line 96 of file qdeclarativepathview_p_p.h.
QPointF QDeclarativePathViewPrivate::pointNear | ( | const QPointF & | point, |
qreal * | nearPercent = 0 |
||
) | const |
Definition at line 1146 of file qdeclarativepathview.cpp.
Referenced by isValid().
Definition at line 176 of file qdeclarativepathview.cpp.
Referenced by scheduleLayout().
void QDeclarativePathViewPrivate::regenerate | ( | ) |
Definition at line 333 of file qdeclarativepathview.cpp.
Referenced by isValid().
void QDeclarativePathViewPrivate::releaseItem | ( | QDeclarativeItem * | item | ) |
Definition at line 140 of file qdeclarativepathview.cpp.
Referenced by scheduleLayout().
|
inline |
Definition at line 105 of file qdeclarativepathview_p_p.h.
Referenced by itemGeometryChanged().
void QDeclarativePathViewPrivate::setAdjustedOffset | ( | qreal | offset | ) |
Definition at line 737 of file qdeclarativepathview.cpp.
Referenced by isValid().
void QDeclarativePathViewPrivate::setHighlightPosition | ( | qreal | pos | ) |
Definition at line 276 of file qdeclarativepathview.cpp.
Referenced by scheduleLayout().
void QDeclarativePathViewPrivate::setOffset | ( | qreal | offset | ) |
Definition at line 721 of file qdeclarativepathview.cpp.
Referenced by isValid().
void QDeclarativePathViewPrivate::snapToCurrent | ( | ) |
Definition at line 1781 of file qdeclarativepathview.cpp.
Referenced by isValid().
void QDeclarativePathViewPrivate::updateCurrent | ( | ) |
Definition at line 1730 of file qdeclarativepathview.cpp.
Referenced by isValid().
void QDeclarativePathViewPrivate::updateHighlight | ( | ) |
Definition at line 239 of file qdeclarativepathview.cpp.
Referenced by scheduleLayout().
void QDeclarativePathViewPrivate::updateItem | ( | QDeclarativeItem * | item, |
qreal | percent | ||
) |
Definition at line 319 of file qdeclarativepathview.cpp.
Referenced by isValid().
void QDeclarativePathViewPrivate::updateMappedRange | ( | ) |
Definition at line 168 of file qdeclarativepathview.cpp.
Referenced by scheduleLayout().
QDeclarativeOpenMetaObjectType* QDeclarativePathViewPrivate::attType |
Definition at line 178 of file qdeclarativepathview_p_p.h.
bool QDeclarativePathViewPrivate::autoHighlight |
Definition at line 156 of file qdeclarativepathview_p_p.h.
int QDeclarativePathViewPrivate::currentIndex |
Definition at line 142 of file qdeclarativepathview_p_p.h.
QDeclarativeGuard<QDeclarativeItem> QDeclarativePathViewPrivate::currentItem |
Definition at line 143 of file qdeclarativepathview_p_p.h.
qreal QDeclarativePathViewPrivate::currentItemOffset |
Definition at line 144 of file qdeclarativepathview_p_p.h.
qreal QDeclarativePathViewPrivate::deceleration |
Definition at line 164 of file qdeclarativepathview_p_p.h.
qreal QDeclarativePathViewPrivate::dragMargin |
Definition at line 163 of file qdeclarativepathview_p_p.h.
int QDeclarativePathViewPrivate::firstIndex |
Definition at line 167 of file qdeclarativepathview_p_p.h.
bool QDeclarativePathViewPrivate::flicking |
Definition at line 160 of file qdeclarativepathview_p_p.h.
bool QDeclarativePathViewPrivate::haveHighlightRange |
Definition at line 155 of file qdeclarativepathview_p_p.h.
QDeclarativeComponent* QDeclarativePathViewPrivate::highlightComponent |
Definition at line 179 of file qdeclarativepathview_p_p.h.
QDeclarativeItem* QDeclarativePathViewPrivate::highlightItem |
Definition at line 180 of file qdeclarativepathview_p_p.h.
Referenced by itemGeometryChanged().
int QDeclarativePathViewPrivate::highlightMoveDuration |
Definition at line 186 of file qdeclarativepathview_p_p.h.
qreal QDeclarativePathViewPrivate::highlightPosition |
Definition at line 182 of file qdeclarativepathview_p_p.h.
qreal QDeclarativePathViewPrivate::highlightRangeEnd |
Definition at line 184 of file qdeclarativepathview_p_p.h.
QDeclarativePathView::HighlightRangeMode QDeclarativePathViewPrivate::highlightRangeMode |
Definition at line 185 of file qdeclarativepathview_p_p.h.
qreal QDeclarativePathViewPrivate::highlightRangeStart |
Definition at line 183 of file qdeclarativepathview_p_p.h.
bool QDeclarativePathViewPrivate::highlightUp |
Definition at line 157 of file qdeclarativepathview_p_p.h.
bool QDeclarativePathViewPrivate::interactive |
Definition at line 154 of file qdeclarativepathview_p_p.h.
QList<QDeclarativeItem *> QDeclarativePathViewPrivate::itemCache |
Definition at line 171 of file qdeclarativepathview_p_p.h.
QList<QDeclarativeItem *> QDeclarativePathViewPrivate::items |
Definition at line 170 of file qdeclarativepathview_p_p.h.
qreal QDeclarativePathViewPrivate::lastDist |
Definition at line 147 of file qdeclarativepathview_p_p.h.
int QDeclarativePathViewPrivate::lastElapsed |
Definition at line 148 of file qdeclarativepathview_p_p.h.
QPointF QDeclarativePathViewPrivate::lastPos |
Definition at line 162 of file qdeclarativepathview_p_p.h.
QElapsedTimer QDeclarativePathViewPrivate::lastPosTime |
Definition at line 161 of file qdeclarativepathview_p_p.h.
bool QDeclarativePathViewPrivate::layoutScheduled |
Definition at line 158 of file qdeclarativepathview_p_p.h.
Referenced by scheduleLayout().
qreal QDeclarativePathViewPrivate::mappedRange |
Definition at line 151 of file qdeclarativepathview_p_p.h.
QDeclarativeGuard<QDeclarativeVisualModel> QDeclarativePathViewPrivate::model |
Definition at line 172 of file qdeclarativepathview_p_p.h.
Referenced by isValid().
int QDeclarativePathViewPrivate::modelCount |
Definition at line 187 of file qdeclarativepathview_p_p.h.
QVariant QDeclarativePathViewPrivate::modelVariant |
Definition at line 173 of file qdeclarativepathview_p_p.h.
MovementDirection QDeclarativePathViewPrivate::moveDirection |
Definition at line 177 of file qdeclarativepathview_p_p.h.
QDeclarativeTimeLineValueProxy<QDeclarativePathViewPrivate> QDeclarativePathViewPrivate::moveHighlight |
Definition at line 181 of file qdeclarativepathview_p_p.h.
QDeclarativeTimeLineValueProxy<QDeclarativePathViewPrivate> QDeclarativePathViewPrivate::moveOffset |
Definition at line 166 of file qdeclarativepathview_p_p.h.
MovementReason QDeclarativePathViewPrivate::moveReason |
Definition at line 175 of file qdeclarativepathview_p_p.h.
bool QDeclarativePathViewPrivate::moving |
Definition at line 159 of file qdeclarativepathview_p_p.h.
qreal QDeclarativePathViewPrivate::offset |
Definition at line 149 of file qdeclarativepathview_p_p.h.
Referenced by isValid().
qreal QDeclarativePathViewPrivate::offsetAdj |
Definition at line 150 of file qdeclarativepathview_p_p.h.
bool QDeclarativePathViewPrivate::ownModel |
Definition at line 153 of file qdeclarativepathview_p_p.h.
QDeclarativePath* QDeclarativePathViewPrivate::path |
Definition at line 141 of file qdeclarativepathview_p_p.h.
Referenced by isValid().
int QDeclarativePathViewPrivate::pathItems |
Definition at line 168 of file qdeclarativepathview_p_p.h.
int QDeclarativePathViewPrivate::requestedIndex |
Definition at line 169 of file qdeclarativepathview_p_p.h.
qreal QDeclarativePathViewPrivate::startPc |
Definition at line 145 of file qdeclarativepathview_p_p.h.
QPointF QDeclarativePathViewPrivate::startPoint |
Definition at line 146 of file qdeclarativepathview_p_p.h.
bool QDeclarativePathViewPrivate::stealMouse |
Definition at line 152 of file qdeclarativepathview_p_p.h.
QDeclarativeTimeLine QDeclarativePathViewPrivate::tl |
Definition at line 165 of file qdeclarativepathview_p_p.h.