[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kopete/libkopete/ui
From: Martijn Klingens <klingens () kde ! org>
Date: 2002-12-07 14:58:36
[Download RAW message or body]
CVS commit by mklingens:
Reimplementing contentsMouseMoveEvent is very cool, but it might be a good
idea to call the parent too if we don't want to break drag&drop ;-)
Thanks Olivier for noticing
M +9 -0 kopetecontactlistview.cpp 1.54
--- kdenonbeta/kopete/libkopete/ui/kopetecontactlistview.cpp:1.53 Sat Dec 7 00:07:21 \
2002 @@ -947,11 +947,17 @@
void KopeteContactListView::contentsMouseMoveEvent( QMouseEvent *e )
{
if( e->state() != Qt::NoButton )
+ {
+ KListView::contentsMouseMoveEvent( e );
return;
+ }
QListViewItem *item = itemAt( e->pos () );
if( !item )
+ {
+ KListView::contentsMouseMoveEvent( e );
return;
+ }
QPoint pos = contentsToViewport( e->pos() );
QString tip;
@@ -1025,6 +1031,9 @@
{
kdDebug() << "KopeteContactListView::contentsMouseMoveEvent - Already has a \
tooltip, not adding a new one" << endl; }
+
+ // Also call parent, or we'll break drag-n-drop
+ KListView::contentsMouseMoveEvent( e );
}
#include "kopetecontactlistview.moc"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic