always ensure the geometry is the corret one

svn path=/trunk/KDE/kdelibs/; revision=1064760
This commit is contained in:
Marco Martin 2009-12-21 17:30:21 +00:00
parent 4864d47b42
commit 09fc589dce

View File

@ -80,6 +80,7 @@ bool FocusIndicator::eventFilter(QObject *watched, QEvent *event)
m_prefix = m_customPrefix + "hover"; m_prefix = m_customPrefix + "hover";
m_fade->setProperty("startOpacity", 0.0); m_fade->setProperty("startOpacity", 0.0);
m_fade->setProperty("targetOpacity", 1.0); m_fade->setProperty("targetOpacity", 1.0);
syncGeometry();
m_fade->start(); m_fade->start();
} else if (!m_parent->hasFocus() && event->type() == QEvent::GraphicsSceneHoverLeave) { } else if (!m_parent->hasFocus() && event->type() == QEvent::GraphicsSceneHoverLeave) {
m_fade->setProperty("startOpacity", 1.0); m_fade->setProperty("startOpacity", 1.0);
@ -92,6 +93,7 @@ bool FocusIndicator::eventFilter(QObject *watched, QEvent *event)
m_prefix = m_customPrefix + "focus"; m_prefix = m_customPrefix + "focus";
m_fade->setProperty("startOpacity", 0.0); m_fade->setProperty("startOpacity", 0.0);
m_fade->setProperty("targetOpacity", 1.0); m_fade->setProperty("targetOpacity", 1.0);
syncGeometry();
m_fade->start(); m_fade->start();
} else if (!m_parent->isUnderMouse() && event->type() == QEvent::FocusOut) { } else if (!m_parent->isUnderMouse() && event->type() == QEvent::FocusOut) {
m_fade->setProperty("startOpacity", 1.0); m_fade->setProperty("startOpacity", 1.0);