29 Q_PROPERTY(
qreal contentWidth READ contentWidth WRITE setContentWidth NOTIFY contentWidthChanged)
30 Q_PROPERTY(
qreal contentHeight READ contentHeight WRITE setContentHeight NOTIFY contentHeightChanged)
35 Q_PROPERTY(
qreal topMargin READ topMargin WRITE setTopMargin NOTIFY topMarginChanged)
36 Q_PROPERTY(
qreal bottomMargin READ bottomMargin WRITE setBottomMargin NOTIFY bottomMarginChanged)
39 Q_PROPERTY(
qreal leftMargin READ leftMargin WRITE setLeftMargin NOTIFY leftMarginChanged)
40 Q_PROPERTY(
qreal rightMargin READ rightMargin WRITE setRightMargin NOTIFY rightMarginChanged)
43 Q_PROPERTY(
qreal horizontalVelocity READ horizontalVelocity NOTIFY horizontalVelocityChanged)
44 Q_PROPERTY(
qreal verticalVelocity READ verticalVelocity NOTIFY verticalVelocityChanged)
46 Q_PROPERTY(BoundsBehavior boundsBehavior READ boundsBehavior WRITE setBoundsBehavior NOTIFY boundsBehaviorChanged)
47 Q_PROPERTY(
BoundsMovement boundsMovement READ boundsMovement WRITE setBoundsMovement NOTIFY boundsMovementChanged REVISION(2, 10))
49 Q_PROPERTY(
qreal maximumFlickVelocity READ maximumFlickVelocity WRITE setMaximumFlickVelocity NOTIFY maximumFlickVelocityChanged)
50 Q_PROPERTY(
qreal flickDeceleration READ flickDeceleration WRITE setFlickDeceleration NOTIFY flickDecelerationChanged)
51 Q_PROPERTY(
bool moving READ isMoving NOTIFY movingChanged)
52 Q_PROPERTY(
bool movingHorizontally READ isMovingHorizontally NOTIFY movingHorizontallyChanged)
53 Q_PROPERTY(
bool movingVertically READ isMovingVertically NOTIFY movingVerticallyChanged)
54 Q_PROPERTY(
bool flicking READ isFlicking NOTIFY flickingChanged)
55 Q_PROPERTY(
bool flickingHorizontally READ isFlickingHorizontally NOTIFY flickingHorizontallyChanged)
56 Q_PROPERTY(
bool flickingVertically READ isFlickingVertically NOTIFY flickingVerticallyChanged)
57 Q_PROPERTY(
bool dragging READ isDragging NOTIFY draggingChanged)
58 Q_PROPERTY(
bool draggingHorizontally READ isDraggingHorizontally NOTIFY draggingHorizontallyChanged)
59 Q_PROPERTY(
bool draggingVertically READ isDraggingVertically NOTIFY draggingVerticallyChanged)
62 Q_PROPERTY(
bool interactive READ isInteractive WRITE setInteractive NOTIFY interactiveChanged)
63 Q_PROPERTY(
int pressDelay READ pressDelay WRITE setPressDelay NOTIFY pressDelayChanged)
65 Q_PROPERTY(
bool atXEnd READ isAtXEnd NOTIFY atXEndChanged)
66 Q_PROPERTY(
bool atYEnd READ isAtYEnd NOTIFY atYEndChanged)
67 Q_PROPERTY(
bool atXBeginning READ isAtXBeginning NOTIFY atXBeginningChanged)
68 Q_PROPERTY(
bool atYBeginning READ isAtYBeginning NOTIFY atYBeginningChanged)
72 Q_PROPERTY(
bool pixelAligned READ pixelAligned WRITE setPixelAligned NOTIFY pixelAlignedChanged)
73 Q_PROPERTY(
bool synchronousDrag READ synchronousDrag WRITE setSynchronousDrag NOTIFY synchronousDragChanged REVISION(2, 12))
75 Q_PROPERTY(
qreal horizontalOvershoot READ horizontalOvershoot NOTIFY horizontalOvershootChanged REVISION(2, 9))
76 Q_PROPERTY(
qreal verticalOvershoot READ verticalOvershoot NOTIFY verticalOvershootChanged REVISION(2, 9))
94 OvershootBounds = 0x2,
95 DragAndOvershootBounds = DragOverBounds | OvershootBounds
100 BoundsBehavior boundsBehavior()
const;
101 void setBoundsBehavior(BoundsBehavior);
105 FollowBoundsBehavior = 0x1
109 BoundsMovement boundsMovement()
const;
110 void setBoundsMovement(BoundsMovement movement);
115 qreal contentWidth()
const;
116 void setContentWidth(
qreal);
118 qreal contentHeight()
const;
119 void setContentHeight(
qreal);
121 qreal contentX()
const;
122 virtual void setContentX(
qreal pos);
124 qreal contentY()
const;
125 virtual void setContentY(
qreal pos);
127 qreal topMargin()
const;
128 void setTopMargin(
qreal m);
130 qreal bottomMargin()
const;
131 void setBottomMargin(
qreal m);
133 qreal leftMargin()
const;
134 void setLeftMargin(
qreal m);
136 qreal rightMargin()
const;
137 void setRightMargin(
qreal m);
139 virtual qreal originY()
const;
140 virtual qreal originX()
const;
142 bool isMoving()
const;
143 bool isMovingHorizontally()
const;
144 bool isMovingVertically()
const;
145 bool isFlicking()
const;
146 bool isFlickingHorizontally()
const;
147 bool isFlickingVertically()
const;
148 bool isDragging()
const;
149 bool isDraggingHorizontally()
const;
150 bool isDraggingVertically()
const;
152 int pressDelay()
const;
153 void setPressDelay(
int delay);
155 qreal maximumFlickVelocity()
const;
156 void setMaximumFlickVelocity(
qreal);
158 qreal flickDeceleration()
const;
159 void setFlickDeceleration(
qreal);
161 bool isInteractive()
const;
162 void setInteractive(
bool);
164 qreal horizontalVelocity()
const;
165 qreal verticalVelocity()
const;
167 bool isAtXEnd()
const;
168 bool isAtXBeginning()
const;
169 bool isAtYEnd()
const;
170 bool isAtYBeginning()
const;
174 enum FlickableDirection { AutoFlickDirection=0x0, HorizontalFlick=0x1, VerticalFlick=0x2, HorizontalAndVerticalFlick=0x3,
175 AutoFlickIfNeeded=0xc };
176 Q_ENUM(FlickableDirection)
177 FlickableDirection flickableDirection()
const;
178 void setFlickableDirection(FlickableDirection);
180 bool pixelAligned()
const;
181 void setPixelAligned(
bool align);
183 bool synchronousDrag()
const;
184 void setSynchronousDrag(
bool v);
186 qreal horizontalOvershoot()
const;
187 qreal verticalOvershoot()
const;
221 void reboundChanged();
222 void maximumFlickVelocityChanged();
223 void flickDecelerationChanged();
224 void pressDelayChanged();
225 void movementStarted();
226 void movementEnded();
231 void pixelAlignedChanged();
237 void atXEndChanged();
238 void atYEndChanged();
239 void atXBeginningChanged();
240 void atYBeginningChanged();
248#if QT_CONFIG(wheelevent)
249 void wheelEvent(QWheelEvent *
event)
override;
256 void movementStarting();
257 void movementEnding();
258 void movementEnding(
bool hMovementEnding,
bool vMovementEnding);
259 void velocityTimelineCompleted();
260 void timelineCompleted();
263 virtual qreal minXExtent()
const;
264 virtual qreal minYExtent()
const;
265 virtual qreal maxXExtent()
const;
266 virtual qreal maxYExtent()
const;
267 qreal vWidth()
const;
268 qreal vHeight()
const;
269 void componentComplete()
override;
270 virtual void viewportMoved(Qt::Orientations orient);
271 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry)
override;
272 void mouseUngrabEvent()
override;