16 _delay(0), _duration(-1), _startTime(
QTime::
currentTime()), _fps(ThirtyFps), _skip(0)
72 event.setAccepted(
false);
74 if (!
event.isAccepted())
111 int progress = (step *
width / _speed) %
width;
113 progress =
width - progress;
131 if (_step == -1 || _step != current)
169 return _start +
qMax(
qreal(0), step) * (_end - _start);
230 const int ia = 256 -
a;
231 const int sw =
start.width();
232 const int sh =
start.height();
234 switch (
start.depth()) {
241 const uchar *front_data =
end.bits();
242 for (
int sy = 0; sy < sh; sy++) {
246 for (
int sx = 0; sx < sw; sx++) {
271 if (_type ==
Pulse) {
283 }
else if (
time > 0) {
331#include "moc_qstyleanimation_p.cpp"
void stop()
Stops the animation.
virtual void updateCurrentTime(int currentTime)=0
This pure virtual function is called every time the animation's currentTime changes.
void start(QAbstractAnimation::DeletionPolicy policy=KeepWhenStopped)
Starts the animation.
int currentTime
the current time and progress of the animation
QImage currentImage() const
virtual void updateCurrentTime(int time) override
This pure virtual function is called every time the animation's currentTime changes.
void setEndImage(const QImage &image)
QBlendStyleAnimation(Type type, QObject *target)
QImage startImage() const
void setStartImage(const QImage &image)
static bool sendEvent(QObject *receiver, QEvent *event)
Sends event event directly to receiver receiver, using the notify() function.
uchar * bits()
Returns a pointer to the first pixel data.
void setDevicePixelRatio(qreal scaleFactor)
Sets the device pixel ratio for the image.
void setStartValue(qreal value)
qreal currentValue() const
void setEndValue(qreal value)
QNumberStyleAnimation(QObject *target)
bool isUpdateNeeded() const override
QObject * parent() const
Returns a pointer to the parent object.
bool setProperty(const char *name, const QVariant &value)
Sets the value of the object's name property to value.
int animationStep() const
QProgressStyleAnimation(int speed, QObject *target)
int progressStep(int width) const
bool isUpdateNeeded() const override
virtual void updateCurrentTime(int time) override
This pure virtual function is called every time the animation's currentTime changes.
QStyleAnimation(QObject *target)
virtual ~QStyleAnimation()
virtual bool isUpdateNeeded() const
void setFrameRate(FrameRate fps)
int duration() const override
This pure virtual function returns the duration of the animation, and defines for how long QAbstractA...
void setDuration(int duration)
FrameRate frameRate() const
void setStartTime(QTime time)
\inmodule QtCore \reentrant
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
bool qFuzzyCompare(qfloat16 p1, qfloat16 p2) noexcept
bool qFuzzyIsNull(qfloat16 f) noexcept
int qRound(qfloat16 d) noexcept
constexpr const T & qMax(const T &a, const T &b)
GLboolean GLboolean GLboolean GLboolean a
[7]
GLfloat GLfloat GLfloat alpha
constexpr int qRed(QRgb rgb)
constexpr int qGreen(QRgb rgb)
constexpr QRgb qRgba(int r, int g, int b, int a)
constexpr int qBlue(QRgb rgb)
constexpr int qAlpha(QRgb rgb)
static const qreal ScrollBarFadeOutDelay
static QImage blendedImage(const QImage &start, const QImage &end, float alpha)
static QT_BEGIN_NAMESPACE const qreal ScrollBarFadeOutDuration
static double currentTime()