Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwaylanddnd_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QWAYLANDDND_H
6#define QWAYLANDDND_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <qpa/qplatformdrag.h>
20#include <QtGui/private/qsimpledrag_p.h>
21
22#include <QtGui/QDrag>
23#include <QtCore/QMimeData>
24
25#include <QtWaylandClient/qtwaylandclientglobal.h>
26
28
29namespace QtWaylandClient {
30
31class QWaylandDisplay;
32#if QT_CONFIG(draganddrop)
34{
35public:
38
39 void setResponse(bool accepted);
42 void finishDrag();
43
44protected:
45 void startDrag() override;
46 void cancel() override;
49 void endDrag() override;
50
51 bool ownsDragObject() const override;
52
53private:
54 QWaylandDisplay *m_display = nullptr;
55};
56#endif
57}
58
59QT_END_NAMESPACE
60
61#endif // QWAYLANDDND_H
QWaylandDataSource * selectionSource() const
QWaylandDataOffer * selectionOffer() const
void setSelectionSource(QWaylandDataSource *source)
Combined button and popup list for selecting options.
QT_REQUIRE_CONFIG(animation)
QT_REQUIRE_CONFIG(wayland_datadevice)