summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativepathview_p_p.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-03-08 02:38:17 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-03-08 02:38:17 (GMT)
commit2d3323d239c9d20c98e09c9398931e60bb799cca (patch)
treeb5484d2eb06cfc60759e45f7b8fc82176ab09b07 /src/declarative/graphicsitems/qdeclarativepathview_p_p.h
parent9bc81769eb6ebc9bd62fe3c1d86e67ddccbed8b6 (diff)
downloadQt-2d3323d239c9d20c98e09c9398931e60bb799cca.zip
Qt-2d3323d239c9d20c98e09c9398931e60bb799cca.tar.gz
Qt-2d3323d239c9d20c98e09c9398931e60bb799cca.tar.bz2
Add PathView.isCurrentIndex and PathView.view attached properties
Adding PathView attached properties to be in line with other views. Task-number: QT-319
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativepathview_p_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativepathview_p_p.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepathview_p_p.h b/src/declarative/graphicsitems/qdeclarativepathview_p_p.h
index 6344a8a..4083ab5 100644
--- a/src/declarative/graphicsitems/qdeclarativepathview_p_p.h
+++ b/src/declarative/graphicsitems/qdeclarativepathview_p_p.h
@@ -71,6 +71,8 @@ typedef struct PathViewItem{
QDeclarativeItem* item;
}PathViewItem;
+class QDeclarativeOpenMetaObjectType;
+class QDeclarativePathViewAttached;
class QDeclarativePathViewPrivate : public QDeclarativeItemPrivate
{
Q_DECLARE_PUBLIC(QDeclarativePathView)
@@ -81,7 +83,7 @@ public:
, lastElapsed(0), stealMouse(false), ownModel(false), activeItem(0)
, snapPos(0), dragMargin(0), moveOffset(this, &QDeclarativePathViewPrivate::setOffset)
, firstIndex(0), pathItems(-1), pathOffset(0), requestedIndex(-1)
- , moveReason(Other)
+ , moveReason(Other), attType(0)
{
}
@@ -97,6 +99,8 @@ public:
QDeclarativeItem *getItem(int modelIndex);
void releaseItem(QDeclarativeItem *item);
+ QDeclarativePathViewAttached *attached(QDeclarativeItem *item);
+ void clear();
bool isValid() const {
return model && model->count() > 0 && model->isValid() && path;
@@ -137,6 +141,7 @@ public:
QVariant modelVariant;
enum MovementReason { Other, Key, Mouse };
MovementReason moveReason;
+ QDeclarativeOpenMetaObjectType *attType;
};
QT_END_NAMESPACE