forked from KDAB/KDDockWidgets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindowMDI.h
52 lines (39 loc) · 1.4 KB
/
MainWindowMDI.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
This file is part of KDDockWidgets.
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Sérgio Martins <[email protected]>
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
Contact KDAB at <[email protected]> for commercial licensing options.
*/
/**
* @file
* @brief MainWindow sub-class which uses MDI as a layout
*
* @author Sérgio Martins \<[email protected]\>
*/
#ifndef KD_MAINWINDOW_MDI_H
#define KD_MAINWINDOW_MDI_H
#ifdef KDDOCKWIDGETS_QTWIDGETS
#include "MainWindow.h"
#else
#include "private/quick/MainWindowQuick_p.h"
#endif
namespace KDDockWidgets {
/// @brief MainWindow sub-class which uses MDI as a layout
class DOCKS_EXPORT MainWindowMDI : public KDDockWidgets::MDIMainWindowBase
{
Q_OBJECT
public:
///@brief Constructor. See base class documentation
explicit MainWindowMDI(const QString &uniqueName, WidgetType *parent = nullptr,
Qt::WindowFlags flags = Qt::WindowFlags());
///@brief Destructor
~MainWindowMDI() override;
///@brief Docks @p dockWidget
/// The widget will be placed at the specified position
void addDockWidget(DockWidgetBase *dockWidget, QPoint localPos, InitialOption addingOption = {});
///@brief Convenience overload
void addDockWidget(DockWidgetBase *dockWidget, QPointF localPos, InitialOption addingOption = {});
};
}
#endif