UI: Add functions to open properties and filters

This commit is contained in:
Exeldro
2021-08-09 22:35:30 +02:00
committed by Jim
parent f0d372bdd7
commit 5b18faeb49
7 changed files with 63 additions and 5 deletions

View File

@@ -6007,14 +6007,24 @@ void OBSBasic::SceneNameEdited(QWidget *editor,
UNUSED_PARAMETER(endHint);
}
void OBSBasic::OpenFilters()
void OBSBasic::OpenFilters(OBSSource source)
{
OBSSceneItem item = GetCurrentSceneItem();
OBSSource source = obs_sceneitem_get_source(item);
if (source == nullptr) {
OBSSceneItem item = GetCurrentSceneItem();
source = obs_sceneitem_get_source(item);
}
CreateFiltersWindow(source);
}
void OBSBasic::OpenProperties(OBSSource source)
{
if (source == nullptr) {
OBSSceneItem item = GetCurrentSceneItem();
source = obs_sceneitem_get_source(item);
}
CreatePropertiesWindow(source);
}
void OBSBasic::OpenSceneFilters()
{
OBSScene scene = GetCurrentScene();