1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QSCROLLERPROPERTIES_P_H
5#define QSCROLLERPROPERTIES_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
19#include <QPointF>
20#include <QEasingCurve>
21#include <qscrollerproperties.h>
22
23QT_BEGIN_NAMESPACE
24
25class QScrollerPropertiesPrivate
26{
27public:
28 static QScrollerPropertiesPrivate *defaults();
29
30 bool operator==(const QScrollerPropertiesPrivate &) const;
31
32 qreal mousePressEventDelay;
33 qreal dragStartDistance;
34 qreal dragVelocitySmoothingFactor;
35 qreal axisLockThreshold;
36 QEasingCurve scrollingCurve;
37 qreal decelerationFactor;
38 qreal minimumVelocity;
39 qreal maximumVelocity;
40 qreal maximumClickThroughVelocity;
41 qreal acceleratingFlickMaximumTime;
42 qreal acceleratingFlickSpeedupFactor;
43 qreal snapPositionRatio;
44 qreal snapTime;
45 qreal overshootDragResistanceFactor;
46 qreal overshootDragDistanceFactor;
47 qreal overshootScrollDistanceFactor;
48 qreal overshootScrollTime;
49 QScrollerProperties::OvershootPolicy hOvershootPolicy;
50 QScrollerProperties::OvershootPolicy vOvershootPolicy;
51 QScrollerProperties::FrameRates frameRate;
52};
53
54QT_END_NAMESPACE
55
56#endif // QSCROLLERPROPERTIES_P_H
57
58

source code of qtbase/src/widgets/util/qscrollerproperties_p.h