Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
27
QT_BEGIN_NAMESPACE
28
29
namespace
QtWaylandClient
{
30
31
class
QWaylandDisplay;
32
#
if
QT_CONFIG
(
draganddrop
)
33
class
Q_WAYLANDCLIENT_EXPORT
QWaylandDrag
:
public
QBasicDrag
34
{
35
public
:
36
QWaylandDrag
(
QWaylandDisplay
*
display
);
37
~
QWaylandDrag
()
override
;
38
39
void
setResponse
(
bool
accepted
);
40
void
setResponse
(
const
QPlatformDropQtResponse
&
response
);
41
void
setDropResponse
(
const
QPlatformDropQtResponse
&
response
);
42
void
finishDrag
();
43
44
protected
:
45
void
startDrag
()
override
;
46
void
cancel
()
override
;
47
void
move
(
const
QPoint
&
globalPos
,
Qt
::
MouseButtons
b
,
Qt
::
KeyboardModifiers
mods
)
override
;
48
void
drop
(
const
QPoint
&
globalPos
,
Qt
::
MouseButtons
b
,
Qt
::
KeyboardModifiers
mods
)
override
;
49
void
endDrag
()
override
;
50
51
bool
ownsDragObject
()
const
override
;
52
53
private
:
54
QWaylandDisplay
*
m_display
=
nullptr
;
55
};
56
#
endif
57
}
58
59
QT_END_NAMESPACE
60
61
#
endif
// QWAYLANDDND_H
QtWaylandClient::QWaylandDataDeviceManager
Definition
qwaylanddatadevicemanager_p.h:34
QtWaylandClient::QWaylandDataDevice
Definition
qwaylanddatadevice_p.h:51
QtWaylandClient::QWaylandDataDevice::~QWaylandDataDevice
~QWaylandDataDevice() override
Definition
qwaylanddatadevice.cpp:43
QtWaylandClient::QWaylandDataDevice::selectionSource
QWaylandDataSource * selectionSource() const
Definition
qwaylanddatadevice.cpp:68
QtWaylandClient::QWaylandDataDevice::selectionOffer
QWaylandDataOffer * selectionOffer() const
Definition
qwaylanddatadevice.cpp:51
QtWaylandClient::QWaylandDataDevice::setSelectionSource
void setSelectionSource(QWaylandDataSource *source)
Definition
qwaylanddatadevice.cpp:73
QtWaylandClient::QWaylandDataDevice::invalidateSelectionOffer
void invalidateSelectionOffer()
Definition
qwaylanddatadevice.cpp:56
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtWaylandClient
Definition
qwaylandclientextension.h:16
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(animation)
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(wayland_datadevice)
qtbase
src
plugins
platforms
wayland
qwaylanddnd_p.h
Generated on
for Qt by
1.18.0