From kde-commits Fri Apr 29 06:22:40 2005 From: Michael Pyne Date: Fri, 29 Apr 2005 06:22:40 +0000 To: kde-commits Subject: kdelibs/kdeui Message-Id: <20050429062240.C1CD0629 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111475577009116 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 ) {