42 #ifndef QDECLARATIVEPATHVIEW_H 43 #define QDECLARATIVEPATHVIEW_H 46 #include "private/qdeclarativepath_p.h" 96 int currentIndex()
const;
97 void setCurrentIndex(
int idx);
100 void setOffset(
qreal offset);
110 qreal preferredHighlightBegin()
const;
111 void setPreferredHighlightBegin(
qreal);
113 qreal preferredHighlightEnd()
const;
114 void setPreferredHighlightEnd(
qreal);
116 int highlightMoveDuration()
const;
117 void setHighlightMoveDuration(
int);
119 qreal dragMargin()
const;
120 void setDragMargin(
qreal margin);
122 qreal flickDeceleration()
const;
123 void setFlickDeceleration(
qreal dec);
125 bool isInteractive()
const;
126 void setInteractive(
bool);
128 bool isMoving()
const;
129 bool isFlicking()
const;
136 int pathItemCount()
const;
137 void setPathItemCount(
int);
142 void incrementCurrentIndex();
143 void decrementCurrentIndex();
146 void currentIndexChanged();
147 void offsetChanged();
151 void preferredHighlightBeginChanged();
152 void preferredHighlightEndChanged();
153 void highlightRangeModeChanged();
154 void dragMarginChanged();
155 void snapPositionChanged();
156 void delegateChanged();
157 void pathItemCountChanged();
158 void flickDecelerationChanged();
159 void interactiveChanged();
160 void movingChanged();
161 void flickingChanged();
162 void highlightChanged();
163 void highlightItemChanged();
164 void highlightMoveDurationChanged();
165 void movementStarted();
166 void movementEnded();
182 void movementEnding();
183 void itemsInserted(
int index,
int count);
184 void itemsRemoved(
int index,
int count);
185 void itemsMoved(
int,
int,
int);
214 if (m_isCurrent != c) {
216 emit currentItemChanged();
225 if (on != m_onPath) {
233 void currentItemChanged();
252 #endif // QDECLARATIVEPATHVIEW_H The QVariant class acts like a union for the most common Qt data types.
void setIsCurrentItem(bool c)
#define QT_END_NAMESPACE
This macro expands to.
QScopedPointer< QGraphicsItemPrivate > d_ptr
#define QML_DECLARE_TYPE(TYPE)
virtual bool event(QEvent *)
The QByteArray class provides an array of bytes.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
int highlightMoveDuration
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
This event handler, for event event, can be reimplemented to receive mouse press events for this item...
The QObject class is the base class of all Qt objects.
QDeclarativePathView * view()
Q_CORE_EXPORT QTextStream & dec(QTextStream &s)
QDeclarativePathView * m_view
#define QML_DECLARE_TYPEINFO(TYPE, FLAGS)
QDeclarativeOpenMetaObject * m_metaobject
qreal preferredHighlightBegin
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QDeclarativeComponent class encapsulates a QML component definition.
HighlightRangeMode highlightRangeMode
bool isCurrentItem() const
The QDeclarativeItem class provides the most basic of all visual items in QML.
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
This event handler, for event event, can be reimplemented to receive mouse move events for this item...
QVariant data(int key) const
Returns this item's custom data for the key key as a QVariant.
qreal preferredHighlightEnd
QDeclarativeComponent * highlight
#define Q_DECLARE_PRIVATE_D(Dptr, Class)
QDeclarativeItem * highlightItem
QDeclarativeComponent * delegate
virtual void componentComplete()
#define Q_AUTOTEST_EXPORT
QDeclarativePathView * view
The QEvent class is the base class of all event classes.
virtual bool sceneEventFilter(QGraphicsItem *watched, QEvent *event)
Filters events for the item watched.
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
This event handler, for event event, can be reimplemented to receive mouse release events for this it...