summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativegridview_p.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-03-11 05:18:33 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-03-11 05:18:33 (GMT)
commitf42c8faec825126d335e3c5a63c2e034476865e0 (patch)
tree0b047db235380ac727bf39132affbc765d6f7db3 /src/declarative/graphicsitems/qdeclarativegridview_p.h
parent16b28550f03ec69cee8481d93c3ba2c8830e53f5 (diff)
downloadQt-f42c8faec825126d335e3c5a63c2e034476865e0.zip
Qt-f42c8faec825126d335e3c5a63c2e034476865e0.tar.gz
Qt-f42c8faec825126d335e3c5a63c2e034476865e0.tar.bz2
Add a positioning 'mode' to positionViewAtIndex()
Provides more control over where and how the view is positioned.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativegridview_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativegridview_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview_p.h b/src/declarative/graphicsitems/qdeclarativegridview_p.h
index 8e253e5..f14ec14 100644
--- a/src/declarative/graphicsitems/qdeclarativegridview_p.h
+++ b/src/declarative/graphicsitems/qdeclarativegridview_p.h
@@ -137,6 +137,9 @@ public:
SnapMode snapMode() const;
void setSnapMode(SnapMode mode);
+ enum PositionMode { Beginning, Center, End, Visible, Contain };
+ Q_ENUMS(PositionMode)
+
static QDeclarativeGridViewAttached *qmlAttachedProperties(QObject *);
public Q_SLOTS:
@@ -144,7 +147,7 @@ public Q_SLOTS:
void moveCurrentIndexDown();
void moveCurrentIndexLeft();
void moveCurrentIndexRight();
- void positionViewAtIndex(int index);
+ void positionViewAtIndex(int index, int mode);
Q_SIGNALS:
void countChanged();