Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwasmdrag.h
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QWINDOWSDRAG_H
5#define QWINDOWSDRAG_H
6
7#include <private/qstdweb_p.h>
8#include <private/qsimpledrag_p.h>
9
10#include <qpa/qplatformdrag.h>
11#include <QtGui/qdrag.h>
12
13#include <memory>
14
16
17struct DragEvent;
18
19class QWasmDrag final : public QSimpleDrag
20{
21public:
23 ~QWasmDrag() override;
24 QWasmDrag(const QWasmDrag &other) = delete;
28
29 static QWasmDrag *instance();
30
35
36 // QPlatformDrag:
38
39private:
40 struct DragState;
41
42 std::unique_ptr<DragState> m_dragState;
43};
44
46
47#endif // QWINDOWSDRAG_H
QDrag * drag() const
\inmodule QtGui
Definition qdrag.h:22
QSimpleDrag implements QBasicDrag for Drag and Drop operations within the Qt Application itself.
QWasmDrag(QWasmDrag &&other)=delete
void onNativeDragFinished(DragEvent *event)
QWasmDrag & operator=(QWasmDrag &&other)=delete
void onNativeDrop(DragEvent *event)
QWasmDrag(const QWasmDrag &other)=delete
QWasmDrag & operator=(const QWasmDrag &other)=delete
void onNativeDragOver(DragEvent *event)
~QWasmDrag() override
static QWasmDrag * instance()
Definition qwasmdrag.cpp:80
void onNativeDragStarted(DragEvent *event)
Combined button and popup list for selecting options.
DropAction
struct _cl_event * event
QSharedPointer< T > other(t)
[5]