blob: 4ffa8ff72dca38445145afa3a610027c8db6bc51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef CAPTUREDEVENT_H
#define CAPTUREDEVENT_H
#include <QEvent>
#include <QPoint>
#include <QString>
class CapturedEvent
{
public:
CapturedEvent();
CapturedEvent(const QEvent &event, int delay);
void setEvent(const QEvent &event);
int delay() const;
void setDelay(int delay);
QEvent::Type type() const;
QString cppCommand() const;
private:
QEvent::Type mType;
QPoint mPos;
Qt::MouseButton mMouseButton;
int mDelay;
QString mCppCommand;
};
#endif // CAPTUREDEVENT_H
|