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

Method GetPreferences

Plugins/org.mitk.gui.qt.common/src/QmitkAbstractView.cpp:365–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365mitk::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
381mitk::DataStorage::Pointer QmitkAbstractView::GetDataStorage() const
382{

Callers 8

~QmitkAbstractViewMethod · 0.95
CreateQtPartControlMethod · 0.45
~QmitkIsoSurfaceMethod · 0.45
CreateQtPartControlMethod · 0.45
CreateQtPartControlMethod · 0.45
CreateQtPartControlMethod · 0.45
CreateQtPartControlMethod · 0.45

Calls 5

GetViewSiteMethod · 0.80
IsNotNullMethod · 0.80
GetSystemPreferencesMethod · 0.45
NodeMethod · 0.45
GetIdMethod · 0.45

Tested by

no test coverage detected