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

Method CreateControl

Plugins/org.blueberry.ui.qt/src/internal/berryPartStack.cpp:522–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522void PartStack::CreateControl(QWidget* parent)
523{
524 if (this->GetPresentation() != 0)
525 {
526 return;
527 }
528
529 IPresentationFactory* factory = this->GetFactory();
530
531 PresentableVector partList = this->GetPresentableParts();
532 PresentationSerializer serializer(partList);
533
534 StackPresentation::Pointer presentation = PresentationFactoryUtil
535 ::CreatePresentation(factory, appearance, parent,
536 presentationSite, &serializer, savedPresentationState);
537
538 this->CreateControl(parent, presentation);
539 Tweaklets::Get(GuiWidgetsTweaklet::KEY)->MoveBelow(this->GetControl(), nullptr);
540}
541
542IDropTarget::Pointer PartStack::GetDropTarget(Object::Pointer draggedObject, const QPoint& position)
543{

Callers 1

Calls 14

GetPresentationMethod · 0.95
GetFactoryMethod · 0.95
GetPresentablePartsMethod · 0.95
GetControlMethod · 0.95
ShowPartMethod · 0.95
SetPresentationMethod · 0.80
GetFunction · 0.70
MoveBelowMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected