KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
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
17using namespace KDDockWidgets;
18using namespace KDDockWidgets::QtWidgets;
19
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
31{
32 if (!d->freed())
33 m_dropArea->viewAboutToBeDeleted();
34}
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.
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