summaryrefslogtreecommitdiffstats
path: root/src/qmlandroid/view/animation/qqmlandroidaccelerateinterpolator_p.h
blob: ace09d1b3d0f1104a2d2899f7b45d61d12c51107 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef QQMLANDROIDACCELERATEINTERPOLATOR_P_H
#define QQMLANDROIDACCELERATEINTERPOLATOR_P_H

#include "qqmlandroidinterpolator_p.h"
#include "qqmlandroidoptional_p.h"

QT_BEGIN_NAMESPACE

class QQmlAndroidAccelerateInterpolator : public QQmlAndroidInterpolator
{
    Q_OBJECT
    Q_PROPERTY(qreal factor READ factor WRITE setFactor NOTIFY factorChanged)

public:
    explicit QQmlAndroidAccelerateInterpolator(QObject *parent = 0);

    qreal factor() const;
    void setFactor(qreal factor);

Q_SIGNALS:
    void factorChanged();

protected:
    QAndroidJniObject onCreate() Q_DECL_OVERRIDE;

private:
    QQmlAndroidOptional<qreal> m_factor;
};

QT_END_NAMESPACE

#endif // QQMLANDROIDACCELERATEINTERPOLATOR_P_H