42 #ifndef QDECLARATIVEGRIDVIEW_H 43 #define QDECLARATIVEGRIDVIEW_H 45 #include "private/qdeclarativeflickable_p.h" 46 #include "private/qdeclarativeguard_p.h" 69 bool highlightFollowsCurrentItem;
70 int highlightMoveDuration;
78 bool keyNavigationWraps;
99 int modelCount() const;
105 int currentIndex() const;
106 void setCurrentIndex(
int idx);
112 QDeclarativeComponent *highlight() const;
113 void setHighlight(QDeclarativeComponent *highlight);
115 bool highlightFollowsCurrentItem() const;
116 void setHighlightFollowsCurrentItem(
bool);
118 int highlightMoveDuration() const;
119 void setHighlightMoveDuration(
int);
125 qreal preferredHighlightBegin()
const;
126 void setPreferredHighlightBegin(
qreal);
127 void resetPreferredHighlightBegin();
129 qreal preferredHighlightEnd()
const;
130 void setPreferredHighlightEnd(
qreal);
131 void resetPreferredHighlightEnd();
141 bool isWrapEnabled()
const;
142 void setWrapEnabled(
bool);
144 int cacheBuffer()
const;
145 void setCacheBuffer(
int);
147 int cellWidth()
const;
148 void setCellWidth(
int);
150 int cellHeight()
const;
151 void setCellHeight(
int);
170 Q_INVOKABLE Q_REVISION(1)
void positionViewAtBeginning();
171 Q_INVOKABLE Q_REVISION(1)
void positionViewAtEnd();
176 void moveCurrentIndexUp();
177 void moveCurrentIndexDown();
178 void moveCurrentIndexLeft();
179 void moveCurrentIndexRight();
183 void currentIndexChanged();
184 void cellWidthChanged();
185 void cellHeightChanged();
186 void highlightChanged();
187 void highlightItemChanged();
188 void preferredHighlightBeginChanged();
189 void preferredHighlightEndChanged();
190 void highlightRangeModeChanged();
191 void highlightMoveDurationChanged();
193 void delegateChanged();
195 Q_REVISION(1)
void layoutDirectionChanged();
196 void keyNavigationWrapsChanged();
197 void cacheBufferChanged();
198 void snapModeChanged();
199 void headerChanged();
200 void footerChanged();
213 void trackedPositionChanged();
214 void itemsInserted(
int index,
int count);
215 void itemsRemoved(
int index,
int count);
216 void itemsMoved(
int from,
int to,
int count);
218 void destroyRemoved();
232 :
QObject(parent), m_view(0), m_isCurrent(false), m_delayRemove(false) {}
238 if (view != m_view) {
247 if (m_isCurrent != c) {
249 emit currentItemChanged();
256 if (m_delayRemove != delay) {
257 m_delayRemove = delay;
258 emit delayRemoveChanged();
266 void currentItemChanged();
267 void delayRemoveChanged();
The QVariant class acts like a union for the most common Qt data types.
The QKeyEvent class describes a key event.
#define Q_CLASSINFO(name, value)
This macro associates extra information to the class, which is available using QObject::metaObject()...
#define QT_END_NAMESPACE
This macro expands to.
virtual qreal maxYExtent() const
QScopedPointer< QGraphicsItemPrivate > d_ptr
#define QML_DECLARE_TYPE(TYPE)
void setIsCurrentItem(bool c)
virtual bool event(QEvent *)
virtual void keyPressEvent(QKeyEvent *event)
The QObject class is the base class of all Qt objects.
virtual qreal minYExtent() const
#define QML_DECLARE_TYPEINFO(TYPE, FLAGS)
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QDeclarativeComponent class encapsulates a QML component definition.
The QDeclarativeItem class provides the most basic of all visual items in QML.
bool isCurrentItem() const
QVariant data(int key) const
Returns this item's custom data for the key key as a QVariant.
virtual void viewportMoved()
static const char * data(const QByteArray &arr)
QDeclarativeGridView * view()
virtual qreal minXExtent() const
#define Q_DECLARE_PRIVATE_D(Dptr, Class)
QDeclarativeGridViewAttached(QObject *parent)
The Flow item arranges its children side by side, wrapping as necessary.
void setView(QDeclarativeGridView *view)
virtual void componentComplete()
#define Q_AUTOTEST_EXPORT
QDeclarativeGuard< QDeclarativeGridView > m_view
virtual void setContentX(qreal pos)
virtual qreal maxXExtent() const
The QEvent class is the base class of all event classes.
void setDelayRemove(bool delay)
~QDeclarativeGridViewAttached()
virtual IFMETHOD End(void)=0
virtual void setContentY(qreal pos)
QDeclarativeGridView * view