janitor job: make it works

svn path=/trunk/KDE/kdelibs/; revision=1039010
This commit is contained in:
Igor Trindade Oliveira 2009-10-22 13:58:35 +00:00
parent fd62504373
commit 67ffbf7ff3
3 changed files with 11 additions and 2 deletions

View File

@ -52,6 +52,7 @@ set(plasma_LIB_SRCS
animations/slide.cpp
animations/pulser.cpp
animations/rotation.cpp
animations/pause.cpp
applet.cpp
configloader.cpp
containment.cpp
@ -358,6 +359,7 @@ install(FILES
animations/slide.h
animations/pulser.h
animations/rotation.h
animations/pause.h
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/animations COMPONENT Devel)

View File

@ -42,6 +42,11 @@ void FadeAnimation::setFactor(qreal factor)
m_animFactor = qBound(qreal(0.0), factor, qreal(1.0));
}
qreal FadeAnimation::factor() const
{
return m_animFactor;
}
void FadeAnimation::setWidgetToAnimate(QGraphicsWidget *widget)
{
QGraphicsOpacityEffect *effect = m_opacityEffect.data();

View File

@ -39,9 +39,11 @@ FocusIndicator::FocusIndicator(QGraphicsWidget *parent)
m_background->setElementPrefix("hover");
m_background->setCacheAllRenderedFrames(true);
m_fadeIn = new FadeAnimation(1.0);
m_fadeIn = new FadeAnimation();
m_fadeIn->setFactor(1.0);
m_fadeIn->setWidgetToAnimate(this);
m_fadeOut = new FadeAnimation(0.0);
m_fadeOut = new FadeAnimation();
m_fadeOut->setFactor(0);
m_fadeOut->setWidgetToAnimate(this);
setOpacity(0);