25#include "qtquick/views/ViewWrapper_p.h"
27#include "kddockwidgets/core/Group.h"
28#include "kddockwidgets/core/Stack.h"
29#include "kddockwidgets/core/TitleBar.h"
30#include "kddockwidgets/core/DockWidget.h"
31#include "core/DockWidget_p.h"
32#include "core/Group_p.h"
36#include "core/WidgetResizeHandler_p.h"
37#include "core/TabBar_p.h"
57 :
QtQuick::
View(controller, Core::ViewType::Frame, parent)
58 , Core::GroupViewInterface(controller)
70 m_visualItem->setParent(
nullptr);
71 m_visualItem->deleteLater();
76 d->updateConstraintsConnection =
m_group->
tabBar()->
dptr()->countChanged.connect([
this] {
80 d->currentDockWidgetChangedConnection =
m_group->
tabBar()->
dptr()->currentDockWidgetChanged.connect([
this] {
99 for (
auto dw : docks) {
105 QQmlComponent component(
plat()->qmlEngine(),
plat()->viewFactory()->groupFilename());
107 m_visualItem =
static_cast<QQuickItem *
>(component.create());
110 qWarning() << Q_FUNC_INFO <<
"Failed to create item" << component.errorString();
115 m_visualItem->setParentItem(
this);
116 m_visualItem->setParent(
this);
125 setProperty(
"kddockwidgets_min_size",
minSize());
126 setProperty(
"kddockwidgets_max_size",
maxSizeHint());
150 if (oldFrame && oldFrame->beingDeletedLater()) {
167 if (m_stackLayout || !stackLayout) {
168 qWarning() << Q_FUNC_INFO <<
"Shouldn't happen";
172 m_stackLayout = stackLayout;
193 return m_visualItem->property(
"nonContentsHeight").toInt();
196Stack *Group::stackView()
const
199 return qobject_cast<Stack *>(
asQQuickItem(stack->view()));
204TabBar *Group::tabBarView()
const
Application-wide config to tune certain behaviours of the framework.
A ScopedConnection is a RAII-style way to make sure a Connection is disconnected.
void connect(T &&future, QObjectSubclass *context, Callback func)
A factory class for allowing the user to customize some internal widgets.
Implements a QTabWidget derived class with support for docking and undocking KDockWidget::DockWidget ...
QVariant fromValue(const T &value)