| 520 | } |
| 521 | |
| 522 | void 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 | |
| 542 | IDropTarget::Pointer PartStack::GetDropTarget(Object::Pointer draggedObject, const QPoint& position) |
| 543 | { |
no test coverage detected