delete old code that should be fixed in Qt4.4.0
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796619
This commit is contained in:
parent
2cc5870dd6
commit
17215e3d33
18
phase.cpp
18
phase.cpp
@ -29,7 +29,6 @@
|
||||
#include <KGlobalSettings>
|
||||
|
||||
#include "animator.h"
|
||||
#include "widgets/widget.h"
|
||||
|
||||
namespace Plasma
|
||||
{
|
||||
@ -420,14 +419,6 @@ Phase::AnimId Phase::animateElement(QGraphicsItem *item, ElementAnimation animat
|
||||
}
|
||||
|
||||
d->animatedElements[state->id] = state;
|
||||
// nasty hack because QGraphicsItem::update isn't virtual!
|
||||
// FIXME: remove in 4.1 as we will no longer need the caching in Plasma::Widget with Qt 4.4
|
||||
Plasma::Widget *widget = dynamic_cast<Plasma::Widget*>(state->item);
|
||||
if (widget) {
|
||||
widget->update();
|
||||
} else {
|
||||
state->item->update();
|
||||
}
|
||||
|
||||
//kDebug() << "startElementAnimation(AnimId " << animation << ") returning " << state->id;
|
||||
if (needTimer && !d->timerId) {
|
||||
@ -565,15 +556,6 @@ void Phase::timerEvent(QTimerEvent *event)
|
||||
<< state->currentFrame + qMax(1, elapsed / state->interval) << endl;*/
|
||||
state->currentFrame += (KGlobalSettings::graphicEffectsLevel() & KGlobalSettings::SimpleAnimationEffects) ?
|
||||
qMax(1, elapsed / state->interval) : state->frames - state->currentFrame;
|
||||
// nasty hack because QGraphicsItem::update isn't virtual!
|
||||
// FIXME: remove in 4.1 as we will no longer need the caching in Plasma::Widget with Qt 4.4
|
||||
Plasma::Widget *widget = dynamic_cast<Plasma::Widget*>(state->item);
|
||||
if (widget) {
|
||||
widget->update();
|
||||
} else {
|
||||
state->item->update();
|
||||
}
|
||||
|
||||
if (state->currentFrame < state->frames) {
|
||||
state->currentInterval = state->interval;
|
||||
//TODO: calculate a proper interval based on the curve
|
||||
|
Loading…
x
Reference in New Issue
Block a user