mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-25 18:59:04 -05:00
Add label clarifying the condition's intent
This commit is contained in:
@@ -82,8 +82,11 @@ MacroConditionHotkeyEdit::MacroConditionHotkeyEdit(
|
||||
: QWidget(parent)
|
||||
{
|
||||
_name = new QLineEdit();
|
||||
QLabel *line1 = new QLabel(obs_module_text(
|
||||
"AdvSceneSwitcher.condition.hotkey.entry.line1"));
|
||||
QLabel *hint = new QLabel(
|
||||
obs_module_text("AdvSceneSwitcher.condition.hotkey.tip"));
|
||||
|
||||
QWidget::connect(_name, SIGNAL(editingFinished()), this,
|
||||
SLOT(NameChanged()));
|
||||
|
||||
@@ -91,10 +94,12 @@ MacroConditionHotkeyEdit::MacroConditionHotkeyEdit(
|
||||
std::unordered_map<std::string, QWidget *> widgetPlaceholders = {
|
||||
{"{{name}}", _name},
|
||||
};
|
||||
placeWidgets(obs_module_text("AdvSceneSwitcher.condition.hotkey.entry"),
|
||||
placeWidgets(obs_module_text(
|
||||
"AdvSceneSwitcher.condition.hotkey.entry.line2"),
|
||||
switchLayout, widgetPlaceholders);
|
||||
|
||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||
mainLayout->addWidget(line1);
|
||||
mainLayout->addLayout(switchLayout);
|
||||
mainLayout->addWidget(hint);
|
||||
setLayout(mainLayout);
|
||||
|
||||
Reference in New Issue
Block a user