mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-07-19 01:15:14 -05:00
Make selection entry optional for transition list
Needed for FilterComboBox
This commit is contained in:
parent
1f02226620
commit
72a11eedfc
|
|
@ -617,7 +617,8 @@ void PopulateSourceSelection(QComboBox *list, bool addSelect)
|
|||
list->setCurrentIndex(0);
|
||||
}
|
||||
|
||||
void PopulateTransitionSelection(QComboBox *sel, bool addCurrent, bool addAny)
|
||||
void PopulateTransitionSelection(QComboBox *sel, bool addCurrent, bool addAny,
|
||||
bool addSelect)
|
||||
{
|
||||
|
||||
obs_frontend_source_list *transitions = new obs_frontend_source_list();
|
||||
|
|
@ -633,18 +634,22 @@ void PopulateTransitionSelection(QComboBox *sel, bool addCurrent, bool addAny)
|
|||
|
||||
sel->model()->sort(0);
|
||||
|
||||
AddSelectionEntry(sel,
|
||||
obs_module_text("AdvSceneSwitcher.selectTransition"));
|
||||
if (addSelect) {
|
||||
AddSelectionEntry(
|
||||
sel,
|
||||
obs_module_text("AdvSceneSwitcher.selectTransition"));
|
||||
}
|
||||
sel->setCurrentIndex(0);
|
||||
|
||||
if (addCurrent) {
|
||||
sel->insertItem(
|
||||
1,
|
||||
addSelect ? 1 : 0,
|
||||
obs_module_text("AdvSceneSwitcher.currentTransition"));
|
||||
}
|
||||
if (addAny) {
|
||||
sel->insertItem(
|
||||
1, obs_module_text("AdvSceneSwitcher.anyTransition"));
|
||||
addSelect ? 1 : 0,
|
||||
obs_module_text("AdvSceneSwitcher.anyTransition"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ void AddSelectionEntry(QComboBox *sel, const char *description,
|
|||
void AddSelectionGroup(QComboBox *selection, const QStringList &group,
|
||||
bool addSeparator = true);
|
||||
void PopulateTransitionSelection(QComboBox *sel, bool addCurrent = true,
|
||||
bool addAny = false);
|
||||
bool addAny = false, bool addSelect = true);
|
||||
void PopulateWindowSelection(QComboBox *sel, bool addSelect = true);
|
||||
void PopulateAudioSelection(QComboBox *sel, bool addSelect = true);
|
||||
void populateVideoSelection(QComboBox *sel, bool addMainOutput = false,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user