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
qquickpointerdevicehandler_p.h
Go to the documentation of this file.
1// Copyright (C) 2018 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
4
5#ifndef QQUICKPOINTERDEVICEHANDLER_H
6#define QQUICKPOINTERDEVICEHANDLER_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
20
22
24{
26 Q_PROPERTY(QInputDevice::DeviceTypes acceptedDevices READ acceptedDevices WRITE
27 setAcceptedDevices NOTIFY acceptedDevicesChanged)
28 Q_PROPERTY(QPointingDevice::PointerTypes acceptedPointerTypes READ acceptedPointerTypes WRITE setAcceptedPointerTypes NOTIFY acceptedPointerTypesChanged)
29 Q_PROPERTY(Qt::MouseButtons acceptedButtons READ acceptedButtons WRITE setAcceptedButtons NOTIFY acceptedButtonsChanged)
30 Q_PROPERTY(Qt::KeyboardModifiers acceptedModifiers READ acceptedModifiers WRITE setAcceptedModifiers NOTIFY acceptedModifiersChanged)
31
32public:
34
35 QInputDevice::DeviceTypes acceptedDevices() const;
36 QPointingDevice::PointerTypes acceptedPointerTypes() const;
37 Qt::MouseButtons acceptedButtons() const;
38 Qt::KeyboardModifiers acceptedModifiers() const;
39
40public Q_SLOTS:
41 void setAcceptedDevices(QInputDevice::DeviceTypes acceptedDevices);
42 void setAcceptedPointerTypes(QPointingDevice::PointerTypes acceptedPointerTypes);
43 void setAcceptedButtons(Qt::MouseButtons buttons);
44 void setAcceptedModifiers(Qt::KeyboardModifiers acceptedModifiers);
45
47 void acceptedDevicesChanged();
48 void acceptedPointerTypesChanged();
49 void acceptedButtonsChanged();
50 void acceptedModifiersChanged();
51
52protected:
54
55 bool wantsPointerEvent(QPointerEvent *event) override;
56
57 Q_DECLARE_PRIVATE(QQuickPointerDeviceHandler)
58};
59
61
62#endif // QQUICKPOINTERDEVICEHANDLER_H
The QInputDevice class describes a device from which a QInputEvent originates.
A base class for pointer events.
Definition qevent.h:73
The QPointingDevice class describes a device from which mouse, touch or tablet events originate.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
Combined button and popup list for selecting options.
Definition qcompare.h:63
struct _cl_event * event
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
#define explicit