blob: 2a290e58324d744ee8b510d5eb2f587785a5ad04 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtVirtualKeyboard/private/enterkeyactionattachedtype_p.h>
QT_BEGIN_NAMESPACE
namespace QtVirtualKeyboard {
/*!
\class QtVirtualKeyboard::EnterKeyActionAttachedType
\internal
*/
EnterKeyActionAttachedType::EnterKeyActionAttachedType(QObject *parent) :
QObject(parent),
m_actionId(EnterKeyAction::None),
m_label(),
m_enabled(true)
{
}
int EnterKeyActionAttachedType::actionId() const
{
return m_actionId;
}
void EnterKeyActionAttachedType::setActionId(int actionId)
{
if (m_actionId != actionId) {
m_actionId = actionId;
emit actionIdChanged();
}
}
QString EnterKeyActionAttachedType::label() const
{
return m_label;
}
void EnterKeyActionAttachedType::setLabel(const QString& label)
{
if (m_label != label) {
m_label = label;
emit labelChanged();
}
}
bool EnterKeyActionAttachedType::enabled() const
{
return m_enabled;
}
void EnterKeyActionAttachedType::setEnabled(bool enabled)
{
if (m_enabled != enabled) {
m_enabled = enabled;
emit enabledChanged();
}
}
} // namespace QtVirtualKeyboard
QT_END_NAMESPACE
|