[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/multimedia/amarok/src/context/widgets
From: Simon Esneault <simon.esneault () gmail ! com>
Date: 2009-07-10 11:37:34
Message-ID: 1247225854.849358.4067.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 994206 by sesneault:
Set the animation of scrolling text speed backward same as forward
Style++
M +6 -0 DropPixmapItem.cpp
M +4 -3 TextScrollingWidget.cpp
M +1 -1 TextScrollingWidget.h
--- trunk/extragear/multimedia/amarok/src/context/widgets/DropPixmapItem.cpp \
#994205:994206 @@ -66,6 +66,12 @@
}
}
}
+
+ if ( event->mimeData()->hasImage() )
+ {
+ debug() << "DropPixmapItem:: mimeData has image";
+ emit imageDropped( qVariantValue< QPixmap >( event->mimeData()->imageData() \
) ); + }
}
void DropPixmapItem::imageDownloadResult( KJob *job )
--- trunk/extragear/multimedia/amarok/src/context/widgets/TextScrollingWidget.cpp \
#994205:994206 @@ -117,17 +117,18 @@
void
TextScrollingWidget::startAnimFor()
{
- m_animfor = Plasma::Animator::self()->customAnimation( m_delta*2, m_delta*15, \
Plasma::Animator::EaseInOutCurve, this, "animate" ); + m_animfor = \
Plasma::Animator::self()->customAnimation( m_delta*2, m_delta*15, \
Plasma::Animator::EaseInOutCurve, this, "animateFor" ); }
void
TextScrollingWidget::startAnimBack()
{
- m_animback = Plasma::Animator::self()->customAnimation( m_delta/2, m_delta*5, \
Plasma::Animator::EaseInOutCurve, this, "animateBack" ); + //m_animback = \
Plasma::Animator::self()->customAnimation( m_delta/2, m_delta*5, \
Plasma::Animator::EaseInOutCurve, this, "animateBack" ); + m_animback = \
Plasma::Animator::self()->customAnimation( m_delta*2, m_delta*15, \
Plasma::Animator::EaseInOutCurve, this, "animateBack" ); }
void
-TextScrollingWidget::animate( qreal anim )
+TextScrollingWidget::animateFor( qreal anim )
{
// DEBUG_BLOCK
m_currentDelta = ( float )( anim * ( m_delta ) );
--- trunk/extragear/multimedia/amarok/src/context/widgets/TextScrollingWidget.h \
#994205:994206 @@ -52,7 +52,7 @@
void setScrollingText( const QString, QRectF );
public slots:
- void animate( qreal anim );
+ void animateFor( qreal anim );
void animateBack( qreal anim );
void animationFinished(int);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic