Bug 45673 - mp3/video preview does not stop
Summary: mp3/video preview does not stop
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: 3.0.2
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-23 21:33 UTC by bloodpup
Modified: 2004-02-20 01:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bloodpup 2002-07-23 21:22:06 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           konqueror
Version:           3.0.2 (using KDE 3.0.2 )
Severity:          normal
Installed from:    Gentoo Packages
Compiler:          gcc 2.95.3
OS:                Linux
OS/Compiler notes: Not Specified

Prerequisites:  
Preview sound files enabled
Some sound files

Steps to reproduce:
1. Start konqueror to Icon View mode.
2. Go to the directory contianing the audio files.
3. Open any other program so that you have another window.
4. Put this window overtop of the konqueror window so that it is covering half of the sound file's icon.
5. Move your mouse to hover overtop of the sound file.  The preview should be heard.
6. Move the mouse to the other window from the icon without going outside of the icon.
7.  The preview is still playing now that the mouse is no longer over the icon.  Konqueror does not figure out that the mouse is gone until it goes back overtop of some part of the konqueror window.

Note:
This can also happen without the second window the music file can also be half scrolled off of the bottom of the konqueror window.


(Submitted via bugs.kde.org)
Comment 1 George Staikos 2003-02-12 02:19:26 UTC
There are lots of instances of this bug.  it's not particular to previews. 
Comment 2 George Staikos 2003-02-27 17:39:43 UTC

*** This bug has been marked as a duplicate of 44354 ***
Comment 3 John Firebaugh 2003-08-25 00:42:00 UTC
Maybe, but it isn't a duplicate of 44354. 
Comment 4 Benoit Walter 2004-02-20 01:40:57 UTC
CVS commit by bwalter: 

Check if another window covers the viewport so that we can really know if
the pointer leaves the view.

CCMAIL: 45673-done@bugs.kde.org


  M +9 -0      konq_iconviewwidget.cc   1.275


--- kdebase/libkonq/konq_iconviewwidget.cc  #1.274:1.275
@@ -30,4 +30,5 @@
 #include <qmovie.h>
 #include <qregexp.h>
+#include <qcursor.h>
 
 #include <kapplication.h>
@@ -1320,4 +1321,12 @@ void KonqIconViewWidget::setSortDirector
 void KonqIconViewWidget::contentsMouseMoveEvent( QMouseEvent *e )
 {
+    if ( QApplication::widgetAt( QCursor::pos() ) != topLevelWidget() )
+    {
+        if (d->pSoundPlayer)
+            d->pSoundPlayer->stop();
+        d->pSoundItem = 0;
+        if (d->pSoundTimer && d->pSoundTimer->isActive())
+            d->pSoundTimer->stop();
+    }
     d->renameItem= false;
     QIconView::contentsMouseMoveEvent( e );