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);
54 LayoutSaverOptions layoutSaverOptions,
57 Core::ViewType::
DockWidget, nullptr, windowFlags)
58 , Core::DockWidgetViewInterface(asDockWidgetController())
59 , d(new Private(this))
61 d->guestChangeConnection =
m_dockWidget->
d->guestViewChanged.connect([
this] {
62 if (
auto guest =
widget()) {
64 d->layout->addWidget(guest);
68 d->optionsChangedConnection =
m_dockWidget->
d->optionsChanged.connect([
this](KDDockWidgets::DockWidgetOptions opts) {
72 d->guestViewChangedConnection =
m_dockWidget->
d->guestViewChanged.connect([
this] {
76 d->isFocusedChangedConnection =
m_dockWidget->
d->isFocusedChanged.connect([
this](
bool focused) {
80 d->isOpenChangedConnection =
m_dockWidget->
d->isOpenChanged.connect([
this](
bool open) {
84 d->windowActiveAboutToChangeConnection =
m_dockWidget->
d->windowActiveAboutToChange.connect([
this](
bool active) {
88 d->isCurrentTabConnection =
m_dockWidget->
d->isCurrentTabChanged.connect([
this](
bool isCurrent) {
125 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