mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Update header info of action queue macro segments
This commit is contained in:
parent
b5426b398a
commit
b803c0ad75
|
|
@ -176,6 +176,8 @@ void MacroActionQueueEdit::QueueChanged(const QString &text)
|
|||
|
||||
auto lock = LockContext();
|
||||
_entryData->_queue = GetWeakActionQueueByQString(text);
|
||||
emit HeaderInfoChanged(
|
||||
QString::fromStdString(_entryData->GetShortDesc()));
|
||||
}
|
||||
|
||||
void MacroActionQueueEdit::ActionChanged(int value)
|
||||
|
|
|
|||
|
|
@ -58,6 +58,11 @@ bool MacroConditionQueue::Load(obs_data_t *obj)
|
|||
return true;
|
||||
}
|
||||
|
||||
std::string MacroConditionQueue::GetShortDesc() const
|
||||
{
|
||||
return GetActionQueueName(_queue);
|
||||
}
|
||||
|
||||
static inline void populateQueueTypeSelection(QComboBox *list)
|
||||
{
|
||||
for (const auto &[_, name] : conditionTypes) {
|
||||
|
|
@ -102,6 +107,8 @@ void MacroConditionQueueEdit::ConditionChanged(int condition)
|
|||
auto lock = LockContext();
|
||||
_entryData->_condition =
|
||||
static_cast<MacroConditionQueue::Condition>(condition);
|
||||
emit HeaderInfoChanged(
|
||||
QString::fromStdString(_entryData->GetShortDesc()));
|
||||
SetWidgetVisibility();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ public:
|
|||
bool CheckCondition();
|
||||
bool Save(obs_data_t *obj) const;
|
||||
bool Load(obs_data_t *obj);
|
||||
std::string GetShortDesc() const;
|
||||
std::string GetId() const { return id; };
|
||||
static std::shared_ptr<MacroCondition> Create(Macro *m)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user