| 26 | } |
| 27 | |
| 28 | void MacroRunButton::SetMacroTree(MacroTree *macros) |
| 29 | { |
| 30 | _macros = macros; |
| 31 | |
| 32 | QWidget::connect(macros, SIGNAL(MacroSelectionChanged()), this, |
| 33 | SLOT(MacroSelectionChanged())); |
| 34 | QWidget::connect(&_timer, &QTimer::timeout, this, |
| 35 | [this]() { MacroSelectionChanged(); }); |
| 36 | |
| 37 | _timer.start(1000); |
| 38 | } |
| 39 | |
| 40 | void MacroRunButton::MacroSelectionChanged() |
| 41 | { |