| 196 | } |
| 197 | |
| 198 | void RegexConfigDialog::SetOption(RegexConfig &conf, |
| 199 | QRegularExpression::PatternOptions what, |
| 200 | QCheckBox *cb) |
| 201 | { |
| 202 | if (cb->isChecked()) { |
| 203 | conf._options |= what; |
| 204 | } else { |
| 205 | conf._options &= ~what; |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | bool RegexConfigDialog::AskForSettings(QWidget *parent, RegexConfig &settings) |
| 210 | { |