| 363 | } |
| 364 | |
| 365 | mitk::IPreferences* QmitkAbstractView::GetPreferences() const |
| 366 | { |
| 367 | mitk::CoreServicePointer prefsService(mitk::CoreServices::GetPreferencesService()); |
| 368 | auto* prefs = prefsService->GetSystemPreferences(); |
| 369 | |
| 370 | if (prefs != nullptr) |
| 371 | { |
| 372 | auto viewSite = const_cast<QmitkAbstractView*>(this)->GetViewSite(); |
| 373 | |
| 374 | if (viewSite.IsNotNull()) |
| 375 | return prefs->Node("/" + viewSite->GetId().toStdString()); |
| 376 | } |
| 377 | |
| 378 | return nullptr; |
| 379 | } |
| 380 | |
| 381 | mitk::DataStorage::Pointer QmitkAbstractView::GetDataStorage() const |
| 382 | { |
no test coverage detected