Bug 87975

Summary: digikam: thumbnail tooltip not deleted when scrolling with MMB wheel
Product: [Applications] digikam Reporter: Achim Bohnet <ach>
Component: Thumbs-ImageAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 0.7.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Achim Bohnet 2004-08-24 22:03:02 UTC
Version:           0.7.0-cvs (using KDE 3.2.3,  (3.1))
Compiler:          gcc version 3.3.4 (Debian 1:3.3.4-7)
OS:                Linux (i686) release 2.6.7-ach-1-686

fresh cvs build:
When I scroll via the mouse wheel the tooptip is not deleted or
updated when a new thumbnail is under the mouse cursor.

Similar: clicking on a thumbnail, no tooltip pops up. moving
with MMB wheel no tooltip pops up when a new image is scrolled
under the mouse cursor.

Achim
Comment 1 Renchi Raju 2004-08-25 02:10:30 UTC
CVS commit by pahlibar: 


hide tooltip on mouse wheel event

CVS_SILENT
CCMAIL: 87975-done@bugs.kde.org


  M +10 -0     thumbview.cpp   1.16
  M +1 -0      thumbview.h   1.6


--- kdeextragear-3/digikam/digikam/thumbview.cpp  #1.15:1.16
@@ -906,4 +906,14 @@ void ThumbView::contentsMouseDoubleClick
 }
 
+void ThumbView::contentsWheelEvent(QWheelEvent *e)
+{
+    d->toolTipItem = 0;
+    d->toolTipTimer->stop();
+    slotToolTip();
+
+    QScrollView::contentsWheelEvent(e);
+    viewport()->update();
+}
+
 void ThumbView::rebuildContainers()
 {

--- kdeextragear-3/digikam/digikam/thumbview.h  #1.5:1.6
@@ -66,4 +66,5 @@ protected:
     virtual void contentsMouseReleaseEvent(QMouseEvent *e);
     virtual void contentsMouseDoubleClickEvent(QMouseEvent *e);
+    virtual void contentsWheelEvent(QWheelEvent *e);
     
     virtual void viewportPaintEvent(QPaintEvent *pe);


Comment 2 Renchi Raju 2004-08-25 02:15:06 UTC
"clicking on a thumbnail, no tooltip pops up.": this is normal. if user presses a button, its expected that user is trying to do something and most likely doesn't want to be bothered by the tooltip
"moving with MMB wheel no tooltip pops up when a new image is scrolled
under the mouse cursor.": same here. just move the mouse a little and the tooltip will popup again if the mouse is on an item