Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:07:33

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QPAUSEANIMATION_H
0005 #define QPAUSEANIMATION_H
0006 
0007 #include <QtCore/qanimationgroup.h>
0008 
0009 QT_REQUIRE_CONFIG(animation);
0010 
0011 QT_BEGIN_NAMESPACE
0012 
0013 class QPauseAnimationPrivate;
0014 
0015 class Q_CORE_EXPORT QPauseAnimation : public QAbstractAnimation
0016 {
0017     Q_OBJECT
0018     Q_PROPERTY(int duration READ duration WRITE setDuration BINDABLE bindableDuration)
0019 public:
0020     QPauseAnimation(QObject *parent = nullptr);
0021     QPauseAnimation(int msecs, QObject *parent = nullptr);
0022     ~QPauseAnimation();
0023 
0024     int duration() const override;
0025     void setDuration(int msecs);
0026     QBindable<int> bindableDuration();
0027 
0028 protected:
0029     bool event(QEvent *e) override;
0030     void updateCurrentTime(int) override;
0031 
0032 private:
0033     Q_DISABLE_COPY(QPauseAnimation)
0034     Q_DECLARE_PRIVATE(QPauseAnimation)
0035 };
0036 
0037 QT_END_NAMESPACE
0038 
0039 #endif // QPAUSEANIMATION_H