backport fix for folderview during rename of files
svn path=/branches/KDE/4.2/kdelibs/; revision=948318
This commit is contained in:
parent
1c95aa9171
commit
bbff7fd4cf
@ -25,6 +25,7 @@
|
||||
#include <QtGui/QLinearGradient>
|
||||
#include <QtGui/QPainter>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QMenu>
|
||||
|
||||
#include <kcolorscheme.h>
|
||||
#include <kglobalsettings.h>
|
||||
@ -789,6 +790,15 @@ void AppletHandle::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
|
||||
foreach (QWidget *widget, QApplication::topLevelWidgets()) {
|
||||
QMenu *menu = qobject_cast<QMenu*>(widget);
|
||||
if (menu && menu->isVisible()) {
|
||||
connect(menu, SIGNAL(aboutToHide()), this, SLOT(leaveTimeout()));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// if we haven't even showed up yet, remove the handle
|
||||
if (m_hoverTimer->isActive()) {
|
||||
m_hoverTimer->stop();
|
||||
|
Loading…
Reference in New Issue
Block a user