ignore timer id's that aren't ours
svn path=/trunk/KDE/kdelibs/; revision=944581
This commit is contained in:
parent
d7fdb6deb1
commit
599fcdd138
@ -22,6 +22,7 @@
|
||||
|
||||
#include <QGraphicsItem>
|
||||
#include <QTimeLine>
|
||||
#include <QTimerEvent>
|
||||
|
||||
#include <kconfig.h>
|
||||
#include <kconfiggroup.h>
|
||||
@ -548,6 +549,11 @@ bool Animator::isAnimating() const
|
||||
|
||||
void Animator::timerEvent(QTimerEvent *event)
|
||||
{
|
||||
if (event->timerId() != d->timerId) {
|
||||
QObject::timerEvent(event);
|
||||
return;
|
||||
}
|
||||
|
||||
Q_UNUSED(event)
|
||||
bool animationsRemain = false;
|
||||
int elapsed = MIN_TICK_RATE;
|
||||
|
@ -360,7 +360,7 @@ DataEngine::SourceDict DataEngine::containerDict() const
|
||||
void DataEngine::timerEvent(QTimerEvent *event)
|
||||
{
|
||||
if (event->timerId() != d->updateTimerId) {
|
||||
kDebug() << "bzzzt";
|
||||
QObject::timerEvent(event);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -131,6 +131,11 @@ void SignalRelay::checkQueueing()
|
||||
|
||||
void SignalRelay::timerEvent(QTimerEvent *event)
|
||||
{
|
||||
if (event->timerId() != m_timerId) {
|
||||
QObject::timerEvent(event);
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_resetTimer) {
|
||||
killTimer(m_timerId);
|
||||
m_timerId = startTimer(m_interval);
|
||||
@ -152,7 +157,6 @@ void SignalRelay::timerEvent(QTimerEvent *event)
|
||||
//kDebug() << "queued";
|
||||
m_queued = true;
|
||||
}
|
||||
event->accept();
|
||||
}
|
||||
|
||||
} // Plasma namespace
|
||||
|
@ -84,7 +84,10 @@ BusyWidget::~BusyWidget()
|
||||
|
||||
void BusyWidget::timerEvent(QTimerEvent *event)
|
||||
{
|
||||
Q_UNUSED(event)
|
||||
if (event->timerId() != d->timerId) {
|
||||
QObject::timerEvent(event);
|
||||
return;
|
||||
}
|
||||
|
||||
d->rotation += d->rotationAngle;
|
||||
|
||||
@ -142,8 +145,10 @@ void BusyWidget::showEvent(QShowEvent *event)
|
||||
void BusyWidget::hideEvent(QHideEvent *event)
|
||||
{
|
||||
Q_UNUSED(event)
|
||||
if (d->timerId)
|
||||
if (d->timerId) {
|
||||
killTimer(d->timerId);
|
||||
}
|
||||
|
||||
d->timerId = 0;
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,6 @@ class Plasma::FlashingLabelPrivate
|
||||
state(FlashingLabelPrivate::Invisible),
|
||||
autohide(false)
|
||||
{
|
||||
//TODO: put this on a diet by using timerEvent instead?
|
||||
fadeOutTimer.setInterval(defaultDuration);
|
||||
fadeOutTimer.setSingleShot(true);
|
||||
fadeInTimer.setInterval(0);
|
||||
|
Loading…
Reference in New Issue
Block a user