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 auto group = object_cast<Core::Group *>(dw->
d->group());
45 group->setParentView(
nullptr);
46 group->setLayoutItem(
nullptr);
51 newItem->setGuest(group->asLayoutingGuest());
54 group->addTab(dw, addingOption);
56 newItem->setGuest(group->asLayoutingGuest());
59 assert(!newItem->geometry().isEmpty());
60 m_rootItem->addDockWidget(newItem, localPt);
74 KDDW_ERROR(
"Group not found in the layout {}", (
void * )group);
93 KDDW_ERROR(
"Group not found in the layout {}.", (
void * )group);
97 Rect geo = item->geometry();
99 item->setGeometry(geo);
114 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.