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
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
15
16QT_BEGIN_NAMESPACE
17
18class QWaylandDragPrivate;
19class QWaylandSurface;
20class QWaylandSeat;
21
22class 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("")
34public:
35 explicit QWaylandDrag(QWaylandSeat *seat);
36
37 QWaylandSurface *icon() const;
38 QWaylandSurface *origin() const;
39 QWaylandSeat *seat() const;
40 bool visible() const;
41
42public Q_SLOTS:
43 void dragMove(QWaylandSurface *target, const QPointF &pos);
44 void drop();
45 void cancelDrag();
46
47Q_SIGNALS:
48 void iconChanged();
49 void dragStarted(); // QWaylandSurface *icon????
50};
51
52QT_END_NAMESPACE
53
54#endif // QWAYLANDDRAG_H
const QtWayland::DataDevice * dataDevice() const
QtWayland::DataDevice * dataDevice()
QWaylandDragPrivate(QWaylandSeat *seat)
QWaylandSeat * seat
Combined button and popup list for selecting options.
QT_REQUIRE_CONFIG(draganddrop)