| 168 | |
| 169 | template<typename Func1, typename Func2, typename Func3> |
| 170 | void PreferencesDialog::MapSettingToGroupBox(QGroupBox *groupBox, Func1 getter, Func2 setter, Func3 notifier) const |
| 171 | { |
| 172 | // Get the value and set the checkbox state |
| 173 | groupBox->setChecked(std::bind(getter, settings)()); |
| 174 | |
| 175 | // Set up two way connection |
| 176 | connect(settings, notifier, groupBox, &QGroupBox::setChecked); |
| 177 | connect(groupBox, &QGroupBox::toggled, settings, setter); |
| 178 | } |
| 179 | |
| 180 | void PreferencesDialog::populateTranslationComboBox() |
| 181 | { |
nothing calls this directly
no outgoing calls
no test coverage detected