KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
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"
15#include "kddockwidgets/core/DropArea.h"
16#include "core/View_p.h"
17
18using namespace KDDockWidgets;
19using namespace KDDockWidgets::flutter;
20
22 : flutter::View(dropArea, Core::ViewType::DropArea, parent)
23 , m_dropArea(dropArea)
24{
25 assert(dropArea);
26}
27
29{
30 m_inDtor = true;
31 if (!d->freed())
32 m_dropArea->viewAboutToBeDeleted();
33}
34
36{
37 auto overlay = static_cast<Core::ClassicDropIndicatorOverlay *>(m_dropArea->dropIndicatorOverlay());
38 return dynamic_cast<flutter::View *>(overlay->indicatorWindow());
39}
DropIndicatorOverlay * dropIndicatorOverlay() const
DropArea(Core::DropArea *, Core::View *parent)
Class to abstract QAction, so code still works with QtQuick and Flutter.
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