[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/apps/plasma/applets/folderview
From: Fredrik Höglund <fredrik () kde ! org>
Date: 2010-02-03 19:14:22
Message-ID: 1265224462.161271.3847.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1084788 by fredrik:
- Don't connect to the finished() signal in the fadeOut animation more
than once.
- Stop the animation going in the opposite direction before starting
a fade out/fade in animation.
M +3 -1 actionoverlay.cpp
--- trunk/KDE/kdebase/apps/plasma/applets/folderview/actionoverlay.cpp #1084787:1084788
@@ -150,6 +150,7 @@
fadeOut->setProperty("startOpacity", 1);
fadeOut->setProperty("targetOpacity", 0);
fadeOut->setTargetWidget(this);
+ connect(fadeOut, SIGNAL(finished()), SLOT(close()));
hide();
}
@@ -185,6 +186,7 @@
show();
if (m_hoverIndex != index) {
m_iconToggleSelection->update();
+ fadeOut->stop();
fadeIn->start();
}
m_hoverIndex = index;
@@ -206,8 +208,8 @@
m_hoverIndex = QPersistentModelIndex();
if (isVisible() && (fadeOut->state() != QAbstractAnimation::Running)) {
+ fadeIn->stop();
fadeOut->start();
- connect(fadeOut, SIGNAL(finished()), SLOT(close()));
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic