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

Method GetParentShell

Plugins/org.blueberry.ui.qt/src/berryWindow.cpp:294–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294Shell::Pointer Window::GetParentShell()
295{
296 Shell::Pointer parent = parentShell->GetShell();
297
298 int modal = Constants::APPLICATION_MODAL | Constants::SYSTEM_MODAL | Constants::PRIMARY_MODAL;
299
300 if ((this->GetShellStyle() & modal) != 0)
301 {
302 // If this is a modal shell with no parent, pick a shell using defaultModalParent.
303 if (parent == 0)
304 {
305 parent = defaultModalParent->GetShell();
306 }
307 }
308
309 return parent;
310}
311
312IShellListener* Window::GetShellListener()
313{

Callers 1

CreateShellMethod · 0.95

Calls 2

GetShellStyleMethod · 0.95
GetShellMethod · 0.45

Tested by

no test coverage detected