19#ifndef KD_MAINWINDOW_H
20#define KD_MAINWINDOW_H
23#include "kddockwidgets/core/views/MainWindowViewInterface.h"
46 public Core::MainWindowViewInterface
54 using MainWindowViewInterface::addDockWidget;
97 void setCentralWidget(
QWidget *);
The interface that MainWindow views should implement.
The MainWindow base-class. MainWindow and MainWindowBase are only split in two so we can share some c...
The QMainwindow sub-class that the application should use to be able to dock KDDockWidget DockWidget ...
MainWindow(const QString &uniqueName, MainWindowOptions options={}, QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
Constructor. Use it as you would use QMainWindow.
void setPersistentCentralWidget(QWidget *widget)
QHBoxLayout * internalLayout() const
returns the internal layout this is rarely needed unless you want to layout other widgets next to the...
void setContentsMargins(int left, int top, int right, int bottom) override
Sets the main window's content margins.
~MainWindow() override
Destructor.
QWidget * persistentCentralWidget() const
void setCenterWidgetMargins(QMargins)
sets the margins for the contents widget
QMargins centerWidgetMargins() const override
returns the margins for the contents widget
void updateMargins()
for internal use only
QRect centralAreaGeometry() const override
void setCentralWidget(QWidget *widget)