KDDockWidgets API Documentation 1.7
Loading...
Searching...
No Matches
QWidgetAdapter.h
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2019-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5 Author: SĂ©rgio Martins <sergio.martins@kdab.com>
6
7 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
8
9 Contact KDAB at <info@kdab.com> for commercial licensing options.
10*/
11
12#ifndef KDDOCKWIDGETS_QWIDGETADAPTER_H
13#define KDDOCKWIDGETS_QWIDGETADAPTER_H
14
15#if !defined(KDDOCKWIDGETS_QTWIDGETS) && !defined(KDDOCKWIDGETS_QTQUICK)
16#define KDDOCKWIDGETS_QTWIDGETS
17#endif
18
19#include <QWindow>
20
28namespace KDDockWidgets {
29namespace Private {
30
31inline bool isMinimized(QWindow *window)
32{
33 return window && (window->windowStates() & Qt::WindowMinimized);
34}
35
36}
37}
38
39#ifdef KDDOCKWIDGETS_QTWIDGETS
41#include "private/widgets/QWidgetAdapter_widgets_p.h"
42#include <QMainWindow>
43namespace KDDockWidgets {
44class MainWindow;
45class DockWidget;
53}
54#else
56#include "private/quick/QWidgetAdapter_quick_p.h"
57namespace KDDockWidgets {
58class MainWindowQuick;
59class DockWidgetQuick;
60typedef KDDockWidgets::QWidgetAdapter QWidgetOrQuick;
63typedef KDDockWidgets::MainWindowQuick MainWindowType;
64typedef KDDockWidgets::MainWindowQuick MDIMainWindowBase;
66typedef QQuickItem WidgetType;
67}
68#endif
69
70namespace KDDockWidgets {
75class LayoutGuestWidget : public KDDockWidgets::QWidgetAdapter, public LayoutGuestWidgetBase
76{
77 Q_OBJECT
78public:
80 : QWidgetAdapter(parent)
82 {
83 }
84
86};
87}
88
89#endif
A Layouting::Widget that's deals in QQuickItem.
A Layouting::Widget that's deals in QWidget.
Represents a dock widget.
Represents a dock widget.
Definition DockWidget.h:38
LayoutGuestWidget is the type that Item will host.
LayoutGuestWidget(QWidgetOrQuick *parent)
The QMainwindow sub-class that the application should use to be able to dock KDDockWidget::DockWidget...
Definition MainWindow.h:37
A Layouting::Widget that's deals in QQuickItem Allows to host a QQuickItem in the layout.
A Layouting::Widget that's deals in QWidget Allows to host a QWidget in the layout.
QObject * parent() const
Definition Widget.h:126
bool isMinimized(QWindow *window)
Layouting::Widget_qwidget LayoutGuestWidgetBase
KDDockWidgets::MainWindow MDIMainWindowBase
QWidget QWidgetOrQuick
QMainWindow QMainWindowOrQuick
KDDockWidgets::DockWidget DockWidgetType
KDDockWidgets::MainWindow MainWindowType
WindowMinimized
Qt::WindowStates windowStates() const const

© 2019-2023 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated on Wed Nov 1 2023 00:02:31 for KDDockWidgets API Documentation by doxygen 1.9.8