Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qstyleanimation.cpp File Reference
#include "qstyleanimation_p.h"
#include <qcoreapplication.h>
#include <qwidget.h>
#include <qevent.h>
#include "moc_qstyleanimation_p.cpp"
+ Include dependency graph for qstyleanimation.cpp:

Go to the source code of this file.

Functions

static QImage blendedImage (const QImage &start, const QImage &end, float alpha)
 

Variables

static QT_BEGIN_NAMESPACE const qreal ScrollBarFadeOutDuration = 200.0
 
static const qreal ScrollBarFadeOutDelay = 450.0
 

Function Documentation

◆ blendedImage()

static QImage blendedImage ( const QImage start,
const QImage end,
float  alpha 
)
static

A helper function to blend two images.

The result consists of ((alpha)*startImage) + ((1-alpha)*endImage)

Definition at line 223 of file qstyleanimation.cpp.

References QImage::bits(), fp, qAlpha(), qBlue(), qGreen(), qRed(), qRgba(), qRound(), and QImage::setDevicePixelRatio().

Referenced by QBlendStyleAnimation::updateCurrentTime().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ ScrollBarFadeOutDelay

const qreal ScrollBarFadeOutDelay = 450.0
static

◆ ScrollBarFadeOutDuration

QT_BEGIN_NAMESPACE const qreal ScrollBarFadeOutDuration = 200.0
static