-void SoundWidget::showVolumeMenu( QPoint pos )
-{
- volumeMenu->exec( QCursor::pos() - pos - QPoint( 0, volumeMenu->height()/2 )
- + QPoint( width(), height() /2) );
-}
-
-bool SoundWidget::eventFilter( QObject *obj, QEvent *e )
-{
- VLC_UNUSED( obj );
- if (e->type() == QEvent::MouseButtonPress )
- {
- aout_VolumeMute( p_intf, NULL );
- audio_volume_t i_volume;
- aout_VolumeGet( p_intf, &i_volume );
- e->accept();
- return true;
- }
- else
- {
- e->ignore();
- return false;
- }
-}
-