janitor job: make it works
svn path=/trunk/KDE/kdelibs/; revision=1039010
This commit is contained in:
parent
fd62504373
commit
67ffbf7ff3
@ -52,6 +52,7 @@ set(plasma_LIB_SRCS
|
|||||||
animations/slide.cpp
|
animations/slide.cpp
|
||||||
animations/pulser.cpp
|
animations/pulser.cpp
|
||||||
animations/rotation.cpp
|
animations/rotation.cpp
|
||||||
|
animations/pause.cpp
|
||||||
applet.cpp
|
applet.cpp
|
||||||
configloader.cpp
|
configloader.cpp
|
||||||
containment.cpp
|
containment.cpp
|
||||||
@ -358,6 +359,7 @@ install(FILES
|
|||||||
animations/slide.h
|
animations/slide.h
|
||||||
animations/pulser.h
|
animations/pulser.h
|
||||||
animations/rotation.h
|
animations/rotation.h
|
||||||
|
animations/pause.h
|
||||||
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/animations COMPONENT Devel)
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/animations COMPONENT Devel)
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,6 +42,11 @@ void FadeAnimation::setFactor(qreal factor)
|
|||||||
m_animFactor = qBound(qreal(0.0), factor, qreal(1.0));
|
m_animFactor = qBound(qreal(0.0), factor, qreal(1.0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qreal FadeAnimation::factor() const
|
||||||
|
{
|
||||||
|
return m_animFactor;
|
||||||
|
}
|
||||||
|
|
||||||
void FadeAnimation::setWidgetToAnimate(QGraphicsWidget *widget)
|
void FadeAnimation::setWidgetToAnimate(QGraphicsWidget *widget)
|
||||||
{
|
{
|
||||||
QGraphicsOpacityEffect *effect = m_opacityEffect.data();
|
QGraphicsOpacityEffect *effect = m_opacityEffect.data();
|
||||||
|
@ -39,9 +39,11 @@ FocusIndicator::FocusIndicator(QGraphicsWidget *parent)
|
|||||||
m_background->setElementPrefix("hover");
|
m_background->setElementPrefix("hover");
|
||||||
m_background->setCacheAllRenderedFrames(true);
|
m_background->setCacheAllRenderedFrames(true);
|
||||||
|
|
||||||
m_fadeIn = new FadeAnimation(1.0);
|
m_fadeIn = new FadeAnimation();
|
||||||
|
m_fadeIn->setFactor(1.0);
|
||||||
m_fadeIn->setWidgetToAnimate(this);
|
m_fadeIn->setWidgetToAnimate(this);
|
||||||
m_fadeOut = new FadeAnimation(0.0);
|
m_fadeOut = new FadeAnimation();
|
||||||
|
m_fadeOut->setFactor(0);
|
||||||
m_fadeOut->setWidgetToAnimate(this);
|
m_fadeOut->setWidgetToAnimate(this);
|
||||||
setOpacity(0);
|
setOpacity(0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user