src/settingseditor/settingseditor.cpp

changeset 347
5c655cc006de
parent 341
71c8cea3c205
child 356
65b4741b302d
equal deleted inserted replaced
346:3e3784c4cd3e 347:5c655cc006de
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 }

mercurial