1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef ENTERKEYACTIONATTACHEDTYPE_P_H |
5 | #define ENTERKEYACTIONATTACHEDTYPE_P_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists purely as an |
12 | // implementation detail. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <QObject> |
19 | #include <QtVirtualKeyboard/private/enterkeyaction_p.h> |
20 | #include <QtVirtualKeyboard/qvirtualkeyboard_global.h> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | namespace QtVirtualKeyboard { |
24 | |
25 | class Q_VIRTUALKEYBOARD_EXPORT EnterKeyActionAttachedType : public QObject |
26 | { |
27 | Q_OBJECT |
28 | Q_PROPERTY(int actionId READ actionId WRITE setActionId NOTIFY actionIdChanged) |
29 | Q_PROPERTY(QString label READ label WRITE setLabel NOTIFY labelChanged) |
30 | Q_PROPERTY(bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged) |
31 | QML_ANONYMOUS |
32 | QML_ADDED_IN_VERSION(1, 0) |
33 | QML_EXTRA_VERSION(2, 0) |
34 | |
35 | public: |
36 | explicit EnterKeyActionAttachedType(QObject *parent); |
37 | |
38 | int actionId() const; |
39 | void setActionId(int actionId); |
40 | QString label() const; |
41 | void setLabel(const QString& label); |
42 | bool enabled() const; |
43 | void setEnabled(bool enabled); |
44 | |
45 | signals: |
46 | void actionIdChanged(); |
47 | void labelChanged(); |
48 | void enabledChanged(); |
49 | |
50 | private: |
51 | int m_actionId; |
52 | QString m_label; |
53 | bool m_enabled; |
54 | }; |
55 | |
56 | } // namespace QtVirtualKeyboard |
57 | QT_END_NAMESPACE |
58 | |
59 | #endif |
60 | |