| 278 | } |
| 279 | |
| 280 | void |
| 281 | GistMainWindow::preferences(bool setup) { |
| 282 | PreferencesDialog pd(opt, this); |
| 283 | if (setup) { |
| 284 | c->setAutoZoom(pd.zoom); |
| 285 | } |
| 286 | if (setup || pd.exec() == QDialog::Accepted) { |
| 287 | c->setAutoHideFailed(pd.hideFailed); |
| 288 | c->setRefresh(pd.refresh); |
| 289 | c->setRefreshPause(pd.refreshPause); |
| 290 | c->setSmoothScrollAndZoom(pd.smoothScrollAndZoom); |
| 291 | c->setMoveDuringSearch(pd.moveDuringSearch); |
| 292 | c->setRecompDistances(pd.c_d,pd.a_d); |
| 293 | opt.c_d = pd.c_d; |
| 294 | opt.a_d = pd.a_d; |
| 295 | c->setShowCopies(pd.copies); |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | void |
| 300 | GistMainWindow::populateInspectorSelection(void) { |
nothing calls this directly
no test coverage detected