Commit 7f4e31ab authored by Alessandro Portale's avatar Alessandro Portale

Core: Algorithms for StyleAnimator

aportale's first one!

Change-Id: I86ba1f36576dde19b9deb4c5686e865e7aa53a82
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 3fc2a62b
......@@ -29,17 +29,15 @@
#include "styleanimator.h"
#include <utils/algorithm.h>
#include <QStyleOption>
Animation * StyleAnimator::widgetAnimation(const QWidget *widget) const
{
if (!widget)
return 0;
foreach (Animation *a, animations) {
if (a->widget() == widget)
return a;
}
return 0;
return Utils::findOrDefault(animations, Utils::equal(&Animation::widget, widget));
}
void Animation::paint(QPainter *painter, const QStyleOption *option)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment