UI: Allow scenes to use filters
parent
118665ec99
commit
86ed7f12f3
|
@ -1823,6 +1823,9 @@ void OBSBasic::on_scenes_customContextMenuRequested(const QPoint &pos)
|
|||
popup.addAction(QTStr("Remove"),
|
||||
this, SLOT(RemoveSelectedScene()),
|
||||
DeleteKeys.front());
|
||||
popup.addSeparator();
|
||||
popup.addAction(QTStr("Filters"), this,
|
||||
SLOT(OpenSceneFilters()));
|
||||
}
|
||||
|
||||
popup.exec(QCursor::pos());
|
||||
|
@ -2328,6 +2331,14 @@ void OBSBasic::OpenFilters()
|
|||
CreateFiltersWindow(source);
|
||||
}
|
||||
|
||||
void OBSBasic::OpenSceneFilters()
|
||||
{
|
||||
OBSScene scene = GetCurrentScene();
|
||||
OBSSource source = obs_scene_get_source(scene);
|
||||
|
||||
CreateFiltersWindow(source);
|
||||
}
|
||||
|
||||
void OBSBasic::StreamingStart()
|
||||
{
|
||||
ui->streamButton->setText(QTStr("Basic.Main.StopStreaming"));
|
||||
|
|
|
@ -300,6 +300,7 @@ private slots:
|
|||
void SceneItemNameEdited(QWidget *editor,
|
||||
QAbstractItemDelegate::EndEditHint endHint);
|
||||
|
||||
void OpenSceneFilters();
|
||||
void OpenFilters();
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue