13#include "core/layouting/ItemFreeContainer_p.h"
16#include "core/Group_p.h"
17#include "core/DockWidget_p.h"
18#include "core/Logging_p.h"
25 , m_rootItem(new Core::ItemFreeContainer(asLayoutingHost()))
38 KDDW_ERROR(
"Refusing to add null dock widget");
42 const Size dwSize = dw->
size();
44 auto group = object_cast<Core::Group *>(dw->
d->group());
47 group->setParentView(
nullptr);
48 group->setLayoutItem(
nullptr);
53 newItem->setGuest(group->asLayoutingGuest());
56 group->addTab(dw, addingOption);
58 newItem->setGuest(group->asLayoutingGuest());
61 newItem->setSize(dwSize.expandedTo(newItem->minSize()));
63 assert(!newItem->geometry().isEmpty());
64 m_rootItem->addDockWidget(newItem, localPt);
78 KDDW_ERROR(
"Group not found in the layout {}", (
void * )group);
97 KDDW_ERROR(
"Group not found in the layout {}.", (
void * )group);
101 Rect geo = item->geometry();
102 geo.moveTopLeft(
pos);
103 item->setGeometry(geo);
118 KDDW_ERROR(
"Group not found in the layout {} isMDI={}, isMDIWrapper={}", (
void * )group, group->
isMDI(), group->isMDIWrapper());
Application-wide config to tune certain behaviours of the framework.