Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-15 09:20:03

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 // Qt-Security score:significant reason:default
0004 
0005 #ifndef QPAUSEANIMATION_H
0006 #define QPAUSEANIMATION_H
0007 
0008 #include <QtCore/qanimationgroup.h>
0009 
0010 QT_REQUIRE_CONFIG(animation);
0011 
0012 QT_BEGIN_NAMESPACE
0013 
0014 class QPauseAnimationPrivate;
0015 
0016 class Q_CORE_EXPORT QPauseAnimation : public QAbstractAnimation
0017 {
0018     Q_OBJECT
0019     Q_PROPERTY(int duration READ duration WRITE setDuration BINDABLE bindableDuration)
0020 public:
0021     QPauseAnimation(QObject *parent = nullptr);
0022     QPauseAnimation(int msecs, QObject *parent = nullptr);
0023     ~QPauseAnimation();
0024 
0025     int duration() const override;
0026     void setDuration(int msecs);
0027     QBindable<int> bindableDuration();
0028 
0029 protected:
0030     bool event(QEvent *e) override;
0031     void updateCurrentTime(int) override;
0032 
0033 private:
0034     Q_DISABLE_COPY(QPauseAnimation)
0035     Q_DECLARE_PRIVATE(QPauseAnimation)
0036 };
0037 
0038 QT_END_NAMESPACE
0039 
0040 #endif // QPAUSEANIMATION_H