| 234 | } |
| 235 | |
| 236 | bool VariableSettingsDialog::AskForSettings(QWidget *parent, Variable &settings) |
| 237 | { |
| 238 | VariableSettingsDialog dialog(parent, settings); |
| 239 | dialog.setWindowTitle(obs_module_text("AdvSceneSwitcher.windowTitle")); |
| 240 | if (dialog.exec() != DialogCode::Accepted) { |
| 241 | return false; |
| 242 | } |
| 243 | |
| 244 | settings._name = dialog._name->text().toStdString(); |
| 245 | settings.SetValue(dialog._value->toPlainText().toStdString()); |
| 246 | settings._defaultValue = |
| 247 | dialog._defaultValue->toPlainText().toStdString(); |
| 248 | settings._saveAction = |
| 249 | static_cast<Variable::SaveAction>(dialog._save->currentIndex()); |
| 250 | setLastVariableChangeTime(); |
| 251 | |
| 252 | return true; |
| 253 | } |
| 254 | |
| 255 | static bool AskForSettingsWrapper(QWidget *parent, Item &settings) |
| 256 | { |
nothing calls this directly
no test coverage detected