void VideoWidget::mouseDoubleClickEvent( QMouseEvent *event ) { if( qtMouseButton2VLC( event->button() ) == 0 ) { vout_window_ReportMouseDoubleClick( p_window ); event->accept(); } else event->ignore(); }
void VideoWidget::mouseDoubleClickEvent( QMouseEvent *event ) { int vlc_button = qtMouseButton2VLC( event->button() ); if( vlc_button >= 0 ) { vout_window_ReportMouseDoubleClick( p_window, vlc_button ); event->accept(); } else event->ignore(); }
void VoutWindow::processEvent( EvtMouse &rEvtMouse ) { int button = -1; if( rEvtMouse.getButton() == EvtMouse::kLeft ) button = 0; else if( rEvtMouse.getButton() == EvtMouse::kMiddle ) button = 1; else if( rEvtMouse.getButton() == EvtMouse::kRight ) button = 2; if( rEvtMouse.getAction() == EvtMouse::kDown ) vout_window_ReportMousePressed( m_pWnd, button ); else if( rEvtMouse.getAction() == EvtMouse::kUp ) vout_window_ReportMouseReleased( m_pWnd, button ); else if( rEvtMouse.getAction() == EvtMouse::kDblClick ) vout_window_ReportMouseDoubleClick( m_pWnd, button ); showMouse(); }