15#include "core/Window_p.h"
17#include "core/layouting/Item_p.h"
26class MainWindow::Private
34 void onLayoutGeometryUpdated()
36 const QSize minSz = q->minSize();
37 const bool mainWindowIsTooSmall = minSz.
expandedTo(q->Core::View::size()) != q->Core::View::size();
38 if (mainWindowIsTooSmall) {
39 if (q->isRootView()) {
57 , MainWindowViewInterface(static_cast<Core::
MainWindow *>(
View::controller()))
58 , d(new Private(this))
60 m_mainWindow->
init(uniqueName);
61 makeItemFillParent(
this);
65 makeItemFillParent(layoutView);
70 Q_EMIT geometryUpdated();
71 d->onLayoutGeometryUpdated(); });
79 auto timer =
new QTimer(
this);
80 timer->setSingleShot(
true);
82 Core::Item::s_silenceSanityChecks =
true;
83 timer->callOnTimeout([] { Core::Item::s_silenceSanityChecks =
false; });
90 disconnect(d->layoutGeometryChangedConnection);
114 qDebug() << Q_FUNC_INFO <<
"SideBar hasn't been implemented yet";
120 qFatal(
"Not implemented");
131 qDebug() << Q_FUNC_INFO <<
"not implemented";
A widget that supports an arbitrary number of splitters (called Separators) in any combination of ver...
MainWindow *const m_mainWindow
A docking area for dock widgets Named MainWindow as it's the QtWidgets/QMainWindow counterpart....
QSize maxSizeHint() const override
Reimplemented for internal purposes. .
MainWindow(const QString &uniqueName, MainWindowOptions options={}, QQuickItem *parent=nullptr, Qt::WindowFlags flags={})
Constructor. Use it as you would use QMainWindow.
QRect centralAreaGeometry() const override
QMargins centerWidgetMargins() const override
void setContentsMargins(int left, int top, int right, int bottom) override
QSize minSize() const override
Reimplemented for internal purposes. .
The MainWindow base-class that's shared between QtWidgets and QtQuick stack.
void connect(T &&future, QObjectSubclass *context, Callback func)
void setParent(QObject *parent)
QSize expandedTo(const QSize &otherSize) const const
QMainWindow sub-class to enable KDDockWidgets support.