Added MainWindow::internalLayout()

Allows the application to add more widgets next to the drop area.
This commit is contained in:
Sergio Martins
2022-06-08 16:31:35 +01:00
parent 189fc7356a
commit 74dcbd994a
3 changed files with 16 additions and 3 deletions

View File

@@ -21,6 +21,10 @@
#include "MainWindowBase.h"
QT_BEGIN_NAMESPACE
class QHBoxLayout;
QT_END_NAMESPACE
namespace KDDockWidgets {
class SideBar;
@@ -56,6 +60,11 @@ public:
//@brief sets the margins for the contents widgets
void setCenterWidgetMargins(const QMargins &margins);
///@brief returns the internal layout
/// this is rarely needed unless you want to layout other widgets next to the
/// main dock widget layout
QHBoxLayout *internalLayout() const;
protected:
void closeEvent(QCloseEvent *) override;
void resizeEvent(QResizeEvent *) override;