Refactor help icon usage

This commit is contained in:
WarmUpTill
2025-10-22 21:02:04 +02:00
committed by WarmUpTill
parent 4534b23bad
commit e1164c4fa3
6 changed files with 20 additions and 39 deletions

View File

@@ -242,7 +242,7 @@ MacroConditionStreamEdit::MacroConditionStreamEdit(
_keyFrameInterval(new VariableSpinBox()),
_streamKey(new VariableLineEdit(this)),
_serviceName(new VariableLineEdit(this)),
_currentService(new AutoUpdateTooltipLabel(
_currentService(new AutoUpdateHelpIcon(
this,
[]() {
QString formatString = obs_module_text(
@@ -255,13 +255,6 @@ MacroConditionStreamEdit::MacroConditionStreamEdit(
_keyFrameInterval->setMinimum(0);
_keyFrameInterval->setMaximum(25);
QString path = GetThemeTypeName() == "Light"
? ":/res/images/help.svg"
: ":/res/images/help_light.svg";
QIcon icon(path);
QPixmap pixmap = icon.pixmap(QSize(16, 16));
_currentService->setPixmap(pixmap);
_streamKey->setEchoMode(QLineEdit::PasswordEchoOnEdit);
populateConditionSelection(_conditions);