| 858 | } |
| 859 | |
| 860 | void TOPPASBase::closeEvent(QCloseEvent* event) |
| 861 | { |
| 862 | QList<QMdiSubWindow*> all_windows = ws_->subWindowList(); |
| 863 | for (QMdiSubWindow* w : all_windows) |
| 864 | { |
| 865 | TOPPASWidget* widget = dynamic_cast<TOPPASWidget*>(w->widget()); |
| 866 | if (!widget) continue; // not a TOPPASWidget.. ignore it |
| 867 | |
| 868 | if (!widget->getScene()->saveIfChanged()) |
| 869 | { // user chose 'abort' in dialog |
| 870 | event->ignore(); |
| 871 | return; |
| 872 | } |
| 873 | } |
| 874 | event->accept(); |
| 875 | QSettings settings("OpenMS", "TOPPAS"); |
| 876 | settings.setValue("geometry", saveGeometry()); |
| 877 | settings.setValue("windowState", saveState()); |
| 878 | } |
| 879 | |
| 880 | void TOPPASBase::showURL() |
| 881 | { |
nothing calls this directly
no test coverage detected