myView->setRootIsDecorated( true );
myView->setSelectionMode( QListView::Extended );
myView->installEventFilter( this );
+ myView->viewport()->installEventFilter( this );
QVBoxLayout* main = new QVBoxLayout( this );
main->addWidget( myView );
contextMenuRequest( ce );
return true;
}
- if ( o == myView && e->type() == QEvent::MouseButtonRelease )
+ if ( o == myView->viewport() && e->type() == QEvent::MouseButtonRelease )
{
QMouseEvent* me = (QMouseEvent*)e;
if ( me->button() == RightButton )