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
qwaylanddrag.h
Go to the documentation of this file.
1
// Copyright (C) 2017 Klarälvdalens Datakonsult AB (KDAB).
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QWAYLANDDRAG_H
6
#
define
QWAYLANDDRAG_H
7
8
#
include
<
QtWaylandCompositor
/
qtwaylandcompositorglobal
.
h
>
9
#
include
<
QtWaylandCompositor
/
qtwaylandqmlinclude
.
h
>
10
11
#
include
<
QtCore
/
QObject
>
12
#
include
<
QtCore
/
QPointF
>
13
14
QT_REQUIRE_CONFIG
(
draganddrop
);
15
16
QT_BEGIN_NAMESPACE
17
18
class
QWaylandDragPrivate;
19
class
QWaylandSurface;
20
class
QWaylandSeat;
21
22
class
Q_WAYLANDCOMPOSITOR_EXPORT
QWaylandDrag
:
public
QObject
23
{
24
Q_OBJECT
25
Q_DECLARE_PRIVATE(QWaylandDrag)
26
27
Q_PROPERTY(QWaylandSurface *icon READ icon NOTIFY iconChanged)
28
Q_PROPERTY(
bool
visible READ visible NOTIFY iconChanged)
29
Q_MOC_INCLUDE(
"qwaylandsurface.h"
)
30
31
QML_NAMED_ELEMENT(WaylandDrag)
32
QML_ADDED_IN_VERSION(1, 0)
33
QML_UNCREATABLE(
""
)
34
public
:
35
explicit
QWaylandDrag(QWaylandSeat *seat);
36
37
QWaylandSurface *icon()
const
;
38
QWaylandSurface *origin()
const
;
39
QWaylandSeat *seat()
const
;
40
bool
visible()
const
;
41
42
public
Q_SLOTS:
43
void
dragMove(QWaylandSurface *target,
const
QPointF &pos);
44
void
drop();
45
void
cancelDrag();
46
47
Q_SIGNALS:
48
void
iconChanged();
49
void
dragStarted();
// QWaylandSurface *icon????
50
};
51
52
QT_END_NAMESPACE
53
54
#
endif
// QWAYLANDDRAG_H
QWaylandDragPrivate
Definition
qwaylanddrag.cpp:20
QWaylandDragPrivate::dataDevice
const QtWayland::DataDevice * dataDevice() const
Definition
qwaylanddrag.cpp:32
QWaylandDragPrivate::dataDevice
QtWayland::DataDevice * dataDevice()
Definition
qwaylanddrag.cpp:27
QWaylandDragPrivate::QWaylandDragPrivate
QWaylandDragPrivate(QWaylandSeat *seat)
Definition
qwaylanddrag.cpp:22
QWaylandDragPrivate::seat
QWaylandSeat * seat
Definition
qwaylanddrag.cpp:37
QWaylandDrag
Definition
qwaylanddrag.h:23
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(draganddrop)
qtwayland
src
compositor
compositor_api
qwaylanddrag.h
Generated on
for Qt by
1.18.0