Animates a given widget property.
More...
#include <iAWidgetAnimationDecorator.h>
|
| static void | animate (QWidget *animatedWidget, int duration=2000, QColor startValue=QColor(255, 0, 0), QColor endValue=QApplication::palette().color(QPalette::Window), QString animatedQssProperty="background-color") |
| |
Animates a given widget property.
inspired from https://stackoverflow.com/a/34445886
◆ ~iAWidgetAnimationDecorator()
| iAWidgetAnimationDecorator::~iAWidgetAnimationDecorator |
( |
| ) |
|
◆ animate()
| void iAWidgetAnimationDecorator::animate |
( |
QWidget * | animatedWidget, |
|
|
int | duration = 2000, |
|
|
QColor | startValue = QColor(255, 0, 0), |
|
|
QColor | endValue = QApplication::palette().color(QPalette::Window), |
|
|
QString | animatedQssProperty = "background-color" ) |
|
static |
◆ color()
| QColor iAWidgetAnimationDecorator::color |
( |
| ) |
const |
◆ setColor()
| void iAWidgetAnimationDecorator::setColor |
( |
QColor | color | ) |
|
◆ color
| QColor iAWidgetAnimationDecorator::color |
|
readwrite |
The documentation for this class was generated from the following files: