[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kdeui
From:       Michael Pyne <michael.pyne () kdemail ! net>
Date:       2005-04-29 6:22:40
Message-ID: 20050429062240.C1CD0629 () office ! kde ! org
[Download RAW message or body]

CVS commit by mpyne: 

Fix a bug where KListBox doesn't give the right coordinate to QListBox's
itemAt() function, which causes executed() to not be emitted if you scroll down
in the list box.  According to Trolltech, their QListBox's implementation is
the desired behavior.  This is as discussed (or not) on kde-core-devel.


  M +1 -1      klistbox.cpp   1.25


--- kdelibs/kdeui/klistbox.cpp  #1.24:1.25
@@ -245,5 +245,5 @@ void KListBox::contentsMouseDoubleClickE
   QListBox::contentsMouseDoubleClickEvent( e );
 
-  QListBoxItem* item = itemAt( e->pos() );
+  QListBoxItem* item = itemAt( contentsToViewport( e->globalPos() ) );
 
   if( item ) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic