Commit 485ad5e8 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fix anoying bug, where slide window stays open, when leaving it during animation

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c0451627
......@@ -322,9 +322,17 @@ void QtSlideWindow::updateParentGeometry() {
#include <iostream>
void QtSlideWindow::animationFinished() {
animating_ = false;
// If we reached up position,
// check if the mouse is still inside (could leave in between as we block the leave event
// when animating to avoid flickering
// If mouse is not inside anymore, we start the countdown for slideDown
if ( !down_ && !isUnderMouse() )
......@@ -138,10 +138,10 @@ class DLLEXPORT QtSlideWindow : public QGraphicsProxyWidget
/// Slide widget down
void slideDown();
// Slot is called whenever the animation is finished
/// Slot is called whenever the animation is finished
void animationFinished();
// Start actual slide down
/// Start actual slide down
void startSlideDownAnimation();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment