82 connect(widget, &QAbstractButton::clicked, this, &SettingsEditor::saveSettings); |
82 connect(widget, &QAbstractButton::clicked, this, &SettingsEditor::saveSettings); |
83 } |
83 } |
84 for (auto* widget : this->findChildren<QSpinBox*>()) { |
84 for (auto* widget : this->findChildren<QSpinBox*>()) { |
85 connect(widget, qOverload<int>(&QSpinBox::valueChanged), this, &SettingsEditor::saveSettings); |
85 connect(widget, qOverload<int>(&QSpinBox::valueChanged), this, &SettingsEditor::saveSettings); |
86 } |
86 } |
87 for (auto* widget : this->findChildren<ColorButton*>()) { |
87 for (auto* widget : this->findChildren<ColorEdit*>()) { |
88 connect(widget, &ColorButton::colorChanged, this, &SettingsEditor::saveSettings); |
88 connect(widget, &ColorEdit::colorChanged, this, &SettingsEditor::saveSettings); |
89 } |
89 } |
90 for (auto* widget : this->findChildren<QComboBox*>()) { |
90 for (auto* widget : this->findChildren<QComboBox*>()) { |
91 connect(widget, qOverload<int>(&QComboBox::currentIndexChanged), this, &SettingsEditor::saveSettings); |
91 connect(widget, qOverload<int>(&QComboBox::currentIndexChanged), this, &SettingsEditor::saveSettings); |
92 } |
92 } |
93 } |
93 } |