13#include "core/DockWidget_p.h"
14#include "ViewWrapper_p.h"
30class DockWidget::Private
36 layout->setSpacing(0);
37 layout->setContentsMargins(0, 0, 0, 0);
55 LayoutSaverOptions layoutSaverOptions,
58 Core::ViewType::
DockWidget, nullptr, windowFlags)
59 , Core::DockWidgetViewInterface(asDockWidgetController())
60 , d(new Private(this))
62 d->guestChangeConnection =
m_dockWidget->
d->guestViewChanged.connect([
this] {
63 if (
auto guest =
widget()) {
65 d->layout->addWidget(guest);
69 d->optionsChangedConnection =
m_dockWidget->
d->optionsChanged.connect([
this](KDDockWidgets::DockWidgetOptions opts) {
73 d->guestViewChangedConnection =
m_dockWidget->
d->guestViewChanged.connect([
this] {
77 d->isFocusedChangedConnection =
m_dockWidget->
d->isFocusedChanged.connect([
this](
bool focused) {
81 d->isFloatingChangedConnection =
m_dockWidget->
d->isFloatingChanged.connect([
this](
bool floating) {
85 d->isOpenChangedConnection =
m_dockWidget->
d->isOpenChanged.connect([
this](
bool open) {
89 d->windowActiveAboutToChangeConnection =
m_dockWidget->
d->windowActiveAboutToChange.connect([
this](
bool active) {
93 d->isCurrentTabConnection =
m_dockWidget->
d->isCurrentTabChanged.connect([
this](
bool isCurrent) {
130 return View_qt::asQWidget(guest.get());
A ScopedConnection is a RAII-style way to make sure a Connection is disconnected.
QEvent::Type type() const const
const QSize & size() const const