14#include "kddockwidgets/core/TitleBar.h"
15#include "kddockwidgets/core/DockWidget.h"
16#include "core/DockWidget_p.h"
17#include "kddockwidgets/core/Group.h"
22#include "qtquick/views/ViewWrapper_p.h"
37class QtQuick::DockWidget::Private
40 Private(
DockWidget *view, QQmlEngine *qmlengine)
44 , m_qmlEngine(qmlengine)
46 Q_ASSERT(m_visualItem);
47 m_visualItem->setParent(view);
48 m_visualItem->setParentItem(view);
52 QQuickItem *
const m_visualItem;
53 QQmlEngine *
const m_qmlEngine;
57 LayoutSaverOptions layoutSaverOptions,
61 , Core::DockWidgetViewInterface(asDockWidgetController())
62 , d(new Private(this, engine ? engine :
plat()->qmlEngine()))
64 QQuickItem::setFlag(ItemIsFocusScope);
72 dw->d->guestViewChanged.connect([
this, dw] {
73 if (
auto guest = dw->guestView()) {
74 guest->setVisible(true);
75 Q_EMIT guestItemChanged();
94 if (QQuickItem *guest =
createItem(d->m_qmlEngine, qmlFilename, context))
101 wrapper->setParent(
this);
128 if (
auto guestWidget =
dockWidget()->guestView()) {
140 if (
auto guestWidget =
dockWidget()->guestView()) {
175 groupView->updateGeometry();
Application-wide config to tune certain behaviours of the framework.
QEvent::Type type() const const
QSize boundedTo(const QSize &otherSize) const const
QSize expandedTo(const QSize &otherSize) const const
A factory class for allowing the user to customize some internal widgets.