int SoundWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: userUpdateVolume((*reinterpret_cast< int(*)>(_a[1]))); break; case 1: libUpdateVolume(); break; case 2: updateMuteStatus(); break; case 3: refreshLabels(); break; case 4: showVolumeMenu((*reinterpret_cast< QPoint(*)>(_a[1]))); break; default: ; } _id -= 5; } return _id; }
bool SoundWidget::eventFilter( QObject *obj, QEvent *e ) { VLC_UNUSED( obj ); if( e->type() == QEvent::MouseButtonPress ) { QMouseEvent *event = static_cast<QMouseEvent*>(e); if( event->button() == Qt::LeftButton ) { if( volumeSlider->orientation() == Qt::Vertical ) { showVolumeMenu( event->pos() ); } else { setMuted( !b_is_muted ); } e->accept(); return true; } } e->ignore(); return false; }