mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-22 01:57:31 -05:00
Ensure contents of comboboxes are readable when changing scene/filter
This commit is contained in:
parent
82a41694a1
commit
d7102d395e
|
|
@ -94,6 +94,7 @@ MacroActionFilterEdit::MacroActionFilterEdit(
|
|||
{
|
||||
_sources = new QComboBox();
|
||||
_filters = new QComboBox();
|
||||
_filters->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||
_actions = new QComboBox();
|
||||
_getSettings = new QPushButton(
|
||||
obs_module_text("AdvSceneSwitcher.action.filter.getSettings"));
|
||||
|
|
@ -165,6 +166,7 @@ void MacroActionFilterEdit::SourceChanged(const QString &text)
|
|||
}
|
||||
_filters->clear();
|
||||
populateFilterSelection(_filters, _entryData->_source);
|
||||
_filters->adjustSize();
|
||||
}
|
||||
|
||||
void MacroActionFilterEdit::FilterChanged(const QString &text)
|
||||
|
|
|
|||
|
|
@ -176,6 +176,7 @@ MacroActionSceneVisibilityEdit::MacroActionSceneVisibilityEdit(
|
|||
_scenes = new SceneSelectionWidget(window(), false, true, true);
|
||||
_sourceTypes = new QComboBox();
|
||||
_sources = new QComboBox();
|
||||
_sources->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||
_actions = new QComboBox();
|
||||
|
||||
populateSourceItemTypeSelection(_sourceTypes);
|
||||
|
|
@ -238,6 +239,7 @@ void MacroActionSceneVisibilityEdit::SceneChanged(const SceneSelection &s)
|
|||
}
|
||||
_sources->clear();
|
||||
populateSceneItemSelection(_sources, _entryData->_scene);
|
||||
_sources->adjustSize();
|
||||
}
|
||||
|
||||
void MacroActionSceneVisibilityEdit::SourceTypeChanged(int value)
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ MacroConditionFilterEdit::MacroConditionFilterEdit(
|
|||
{
|
||||
_sources = new QComboBox();
|
||||
_filters = new QComboBox();
|
||||
_filters->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||
_conditions = new QComboBox();
|
||||
_getSettings = new QPushButton(obs_module_text(
|
||||
"AdvSceneSwitcher.condition.filter.getSettings"));
|
||||
|
|
@ -159,6 +160,7 @@ void MacroConditionFilterEdit::SourceChanged(const QString &text)
|
|||
}
|
||||
_filters->clear();
|
||||
populateFilterSelection(_filters, _entryData->_source);
|
||||
_filters->adjustSize();
|
||||
}
|
||||
|
||||
void MacroConditionFilterEdit::FilterChanged(const QString &text)
|
||||
|
|
|
|||
|
|
@ -107,6 +107,7 @@ MacroConditionSceneVisibilityEdit::MacroConditionSceneVisibilityEdit(
|
|||
{
|
||||
_scenes = new SceneSelectionWidget(window(), false, true, true);
|
||||
_sources = new QComboBox();
|
||||
_sources->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||
_conditions = new QComboBox();
|
||||
|
||||
populateConditionSelection(_conditions);
|
||||
|
|
@ -156,6 +157,7 @@ void MacroConditionSceneVisibilityEdit::SceneChanged(const SceneSelection &s)
|
|||
}
|
||||
_sources->clear();
|
||||
populateSceneItemSelection(_sources, _entryData->_scene);
|
||||
_sources->adjustSize();
|
||||
}
|
||||
|
||||
void MacroConditionSceneVisibilityEdit::ConditionChanged(int index)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user