fake mouse move to unhover close window on hide

BUG: 322260
FIXED-IN: 4.11
REVIEW: 111538
icc-effect-5.14.5
Thomas Lübking 2013-07-16 21:23:32 +02:00
parent 287acae1db
commit b6c4f0a7fb
2 changed files with 11 additions and 0 deletions

View File

@ -1998,6 +1998,14 @@ void CloseWindowView::disarm()
m_armTimer->start();
}
void CloseWindowView::hideEvent(QHideEvent *event)
{
const QPoint globalPos = mapToGlobal(QPoint(-1,-1));
QMouseEvent me(QEvent::MouseMove, QPoint(-1,-1), globalPos, Qt::NoButton, Qt::NoButton, Qt::NoModifier);
mouseMoveEvent(&me);
QDeclarativeView::hideEvent(event);
}
} // namespace
#include "presentwindows.moc"

View File

@ -43,6 +43,9 @@ public:
Q_SIGNALS:
void close();
protected:
void hideEvent(QHideEvent *event);
private:
QTimer* m_armTimer;
};