KDDockWidgets API Documentation
2.1
Loading...
Searching...
No Matches
source
src
qtwidgets
views
qtwidgets/views/DropArea.cpp
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
#include "
DropArea.h
"
13
#include "core/Utils_p.h"
14
#include "core/View_p.h"
15
#include "kddockwidgets/core/DropArea.h"
16
17
using namespace
KDDockWidgets
;
18
using namespace
KDDockWidgets::QtWidgets
;
19
20
DropArea::DropArea
(
Core::DropArea
*dropArea,
Core::View
*parent)
21
:
QtWidgets
::
View
<
QWidget
>(dropArea, Core::ViewType::
DropArea
, View_qt::asQWidget(parent))
22
, m_dropArea(dropArea)
23
{
24
Q_ASSERT(dropArea);
25
if
(isWayland()) {
26
setAcceptDrops
(
true
);
27
}
28
}
29
30
DropArea::~DropArea
()
31
{
32
if
(!
d
->freed())
33
m_dropArea->
viewAboutToBeDeleted
();
34
}
KDDockWidgets::Core::DropArea
Definition
core/DropArea.h:55
KDDockWidgets::Core::Layout::viewAboutToBeDeleted
void viewAboutToBeDeleted()
Definition
Layout.cpp:56
KDDockWidgets::Core::View
Definition
core/View.h:48
KDDockWidgets::Core::View::d
Private *const d
Definition
core/View.h:257
KDDockWidgets::QtWidgets::DropArea
Definition
qtwidgets/views/DropArea.h:37
KDDockWidgets::QtWidgets::DropArea::DropArea
DropArea(Core::DropArea *, Core::View *parent)
Definition
qtwidgets/views/DropArea.cpp:20
KDDockWidgets::QtWidgets::DropArea::~DropArea
~DropArea()
Definition
qtwidgets/views/DropArea.cpp:30
KDDockWidgets::QtWidgets::View
Definition
qtwidgets/views/View.h:36
KDDockWidgets::QtWidgets
Definition
core/MainWindow.h:32
KDDockWidgets
Class to abstract QAction, so code still works with QtQuick and Flutter.
Definition
KDStlContainerAdaptor.h:427
KDDockWidgets::FrontendType::QtWidgets
@ QtWidgets
DropArea.h
A MultiSplitter with support for drop indicators when hovering over.
QWidget
QWidget::setAcceptDrops
void setAcceptDrops(bool on)
© 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