MCPcopy Create free account
hub / github.com/MITK/MITK / OnFinished

Method OnFinished

Plugins/org.mitk.gui.qt.ext/src/QmitkStartupDialog.cpp:255–279  ·  view source on GitHub ↗

Save settings to restore them next time.

Source from the content-addressed store, hash-verified

253
254// Save settings to restore them next time.
255void QmitkStartupDialog::OnFinished(int result)
256{
257 auto prefs = GetPreferences();
258
259 bool skipDialog = m_Ui->skipDialogCheckBox->isChecked();
260 prefs->PutBool("skip", skipDialog);
261
262 if (result == QDialog::Accepted)
263 {
264 bool usePreset = m_Ui->presetRadioButton->isChecked();
265 prefs->PutBool("use preset", usePreset);
266
267 if (usePreset)
268 {
269 auto preset = m_Ui->presetListWidget->currentItem()->text().toStdString();
270 prefs->Put("preset", preset);
271 }
272 else
273 {
274 prefs->Remove("preset");
275 }
276 }
277
278 prefs->Flush();
279}

Callers

nothing calls this directly

Calls 6

PutBoolMethod · 0.80
textMethod · 0.80
GetPreferencesFunction · 0.70
PutMethod · 0.45
RemoveMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected