UI: Allow right-clicking mixer sources to bring up menu

Allows bringing up properties/filters/etc via right-clicking mixer items
in addition instead of only being able to click the gear icon.  Minor
QoL improvement.
master
jp9000 2017-09-13 21:08:27 -07:00
parent 2ef00ecec4
commit 7bde1eb6af
1 changed files with 4 additions and 0 deletions

View File

@ -2238,6 +2238,10 @@ void OBSBasic::ActivateAudioSource(OBSSource source)
{ {
VolControl *vol = new VolControl(source, true); VolControl *vol = new VolControl(source, true);
vol->setContextMenuPolicy(Qt::CustomContextMenu);
connect(vol, &QWidget::customContextMenuRequested,
this, &OBSBasic::VolControlContextMenu);
connect(vol, &VolControl::ConfigClicked, connect(vol, &VolControl::ConfigClicked,
this, &OBSBasic::VolControlContextMenu); this, &OBSBasic::VolControlContextMenu);