KDDockWidgets API Documentation
2.1
Loading...
Searching...
No Matches
source
src
flutter
views
flutter/views/DropArea.cpp
Go to the documentation of this file.
1
/*
2
This file is part of KDDockWidgets.
3
4
SPDX-FileCopyrightText: 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
#include "
DropArea.h
"
13
#include "
ClassicDropIndicatorOverlay.h
"
14
#include "
ClassicIndicatorWindowViewInterface.h
"
15
#include "kddockwidgets/core/DropArea.h"
16
#include "core/View_p.h"
17
18
using namespace
KDDockWidgets
;
19
using namespace
KDDockWidgets::flutter
;
20
21
DropArea::DropArea
(
Core::DropArea
*dropArea,
Core::View
*parent)
22
: flutter::
View
(dropArea, Core::ViewType::
DropArea
, parent)
23
, m_dropArea(dropArea)
24
{
25
assert(dropArea);
26
}
27
28
DropArea::~DropArea
()
29
{
30
m_inDtor
=
true
;
31
if
(!
d
->freed())
32
m_dropArea->
viewAboutToBeDeleted
();
33
}
34
35
flutter::View
*
DropArea::indicatorWindow
()
const
36
{
37
auto
overlay =
static_cast<
Core::ClassicDropIndicatorOverlay
*
>
(m_dropArea->
dropIndicatorOverlay
());
38
return
dynamic_cast<
flutter::View
*
>
(overlay->indicatorWindow());
39
}
ClassicDropIndicatorOverlay.h
ClassicIndicatorWindowViewInterface.h
KDDockWidgets::Core::ClassicDropIndicatorOverlay
Definition
ClassicDropIndicatorOverlay.h:25
KDDockWidgets::Core::DropArea
Definition
core/DropArea.h:55
KDDockWidgets::Core::DropArea::dropIndicatorOverlay
DropIndicatorOverlay * dropIndicatorOverlay() const
Definition
core/DropArea.cpp:179
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::Core::View::m_inDtor
bool m_inDtor
Definition
core/View.h:261
KDDockWidgets::flutter::DropArea
Definition
flutter/views/DropArea.h:28
KDDockWidgets::flutter::DropArea::DropArea
DropArea(Core::DropArea *, Core::View *parent)
Definition
flutter/views/DropArea.cpp:21
KDDockWidgets::flutter::DropArea::indicatorWindow
flutter::View * indicatorWindow() const
Definition
flutter/views/DropArea.cpp:35
KDDockWidgets::flutter::DropArea::~DropArea
~DropArea()
Definition
flutter/views/DropArea.cpp:28
KDDockWidgets::flutter::View
Definition
flutter/views/View.h:23
KDDockWidgets::flutter
Definition
core/MainWindow.h:40
KDDockWidgets
Class to abstract QAction, so code still works with QtQuick and Flutter.
Definition
KDStlContainerAdaptor.h:427
DropArea.h
A MultiSplitter with support for drop indicators when hovering over.
© 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