MCPcopy Create free account
hub / github.com/cpvrlab/ImagePlay / on_buttonBox_accepted

Method on_buttonBox_accepted

ImagePlay/src/SettingsWindow.cpp:42–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void SettingsWindow::on_buttonBox_accepted()
43{
44 // save the settings
45 _mainWindow->setDefaultImagePath(ui->txtDefaultImagePath->text());
46 _mainWindow->setPluginDevPath(ui->txtPluginDevPath->text());
47 _mainWindow->setPluginPath(ui->txtPluginPath->text());
48 _mainWindow->setLogFileEnabled(ui->chkLogFile->isChecked());
49 _mainWindow->setUseOpenCV(ui->chkOpenCV->isChecked());
50 _mainWindow->setAutosaveEnabled(ui->chkAutosave->isChecked());
51
52 _mainWindow->writeSettings();
53
54 close();
55}
56
57void SettingsWindow::on_buttonBox_rejected()
58{

Callers

nothing calls this directly

Calls 8

closeFunction · 0.85
setDefaultImagePathMethod · 0.80
setPluginDevPathMethod · 0.80
setPluginPathMethod · 0.80
setLogFileEnabledMethod · 0.80
setUseOpenCVMethod · 0.80
setAutosaveEnabledMethod · 0.80
writeSettingsMethod · 0.80

Tested by

no test coverage detected