Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
961debb5
Commit
961debb5
authored
May 21, 2021
by
Aleix Pol Gonzalez
🐧
Browse files
textinput: Expose enums to moc
Allows us to pass them to qDebug easily.
parent
93a4104b
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/wayland/CMakeLists.txt
View file @
961debb5
...
...
@@ -56,6 +56,7 @@ set(SERVER_LIB_SRCS
surface_interface.cpp
surfacerole.cpp
tablet_v2_interface.cpp
textinput.cpp
textinput_v2_interface.cpp
textinput_v3_interface.cpp
touch_interface.cpp
...
...
src/wayland/textinput.cpp
0 → 100644
View file @
961debb5
/*
SPDX-FileCopyrightText: 2020 Bhushan Shah <bshah@kde.org>
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#include
"textinput.h"
src/wayland/textinput.h
View file @
961debb5
...
...
@@ -8,13 +8,15 @@
#include
<KWaylandServer/kwaylandserver_export.h>
#include
<QtGlobal>
#include
<qobjectdefs.h>
#include
<QVariant>
#include
<inttypes.h>
namespace
KWaylandServer
{
KWAYLANDSERVER_EXPORT
Q_NAMESPACE
Q_NAMESPACE_EXPORT
(
KWAYLANDSERVER_EXPORT
)
/**
* ContentHint allows to modify the behavior of the text input.
*/
...
...
@@ -66,6 +68,7 @@ enum class TextInputContentHint {
};
Q_DECLARE_FLAGS
(
TextInputContentHints
,
TextInputContentHint
)
Q_ENUM_NS
(
TextInputContentHint
)
/**
* The ContentPurpose allows to specify the primary purpose of a text input.
...
...
@@ -131,6 +134,7 @@ enum class TextInputContentPurpose {
*/
Pin
,
};
Q_ENUM_NS
(
TextInputContentPurpose
)
enum
class
TextInputChangeCause
{
/**
...
...
@@ -143,6 +147,7 @@ enum class TextInputChangeCause {
*/
Other
,
};
Q_ENUM_NS
(
TextInputChangeCause
)
}
...
...
src/wayland/textinput_v2_interface.h
View file @
961debb5
...
...
@@ -70,6 +70,7 @@ public:
StateReset
=
2
,
// full state after reset
StateEnter
=
3
,
// full state after switching focus to a different widget on client side
};
Q_ENUM
(
UpdateReason
);
/**
* The preferred language as a RFC-3066 format language tag.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment