KDDockWidgets API Documentation
2.1
Loading...
Searching...
No Matches
source
src
qtwidgets
views
qtwidgets/views/FloatingWindow.h
Go to the documentation of this file.
1
/*
2
This file is part of KDDockWidgets.
3
4
SPDX-FileCopyrightText: 2019 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 KD_FLOATINGWINDOW_QTWIDGETS_H
13
#define KD_FLOATINGWINDOW_QTWIDGETS_H
14
15
#pragma once
16
17
#include "
View.h
"
18
19
QT_BEGIN_NAMESPACE
20
class
QVBoxLayout
;
21
class
QMainWindow
;
22
QT_END_NAMESPACE
23
24
namespace
KDDockWidgets::Core
{
25
class
FloatingWindow
;
26
class
Group
;
27
}
28
29
namespace
KDDockWidgets::QtWidgets
{
30
31
32
class
DOCKS_EXPORT
FloatingWindow
:
public
View
<QWidget>
33
{
34
Q_OBJECT
35
public
:
36
explicit
FloatingWindow
(
Core::FloatingWindow
*controller,
37
QMainWindow
*parent =
nullptr
,
38
Qt::WindowFlags
windowFlags = {});
39
40
~FloatingWindow
()
override
;
41
42
Core::FloatingWindow
*floatingWindow()
const
;
43
44
protected
:
45
void
paintEvent(
QPaintEvent
*)
override
;
46
bool
event(
QEvent
*ev)
override
;
47
bool
eventFilter(
QObject
*o,
QEvent
*ev)
override
;
48
void
init()
override
final
;
49
#if defined(Q_OS_WIN)
50
bool
nativeEvent(
const
QByteArray
&eventType,
void
*message,
51
Qt5Qt6Compat::qintptr *result)
override
;
52
#endif
53
54
Q_SIGNALS:
55
void
numGroupsChanged
();
56
57
private
:
58
class
Private;
59
Private *
const
d;
60
61
void
updateMargins();
62
Q_DISABLE_COPY(
FloatingWindow
)
63
};
64
65
}
66
67
#endif
KDDockWidgets::Core::FloatingWindow
Definition
core/FloatingWindow.h:36
KDDockWidgets::QtWidgets::FloatingWindow
Definition
qtwidgets/views/FloatingWindow.h:33
KDDockWidgets::QtWidgets::FloatingWindow::numGroupsChanged
void numGroupsChanged()
KDDockWidgets::QtWidgets::View
Definition
qtwidgets/views/View.h:36
KDDockWidgets::Core
Definition
Config.h:27
KDDockWidgets::Core::ViewType::Group
@ Group
KDDockWidgets::Core::ViewType::FloatingWindow
@ FloatingWindow
KDDockWidgets::QtWidgets
Definition
core/MainWindow.h:32
QByteArray
QEvent
QMainWindow
QObject
QPaintEvent
Qt::WindowFlags
typedef WindowFlags
View.h
QVBoxLayout
© 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 by doxygen 1.9.8