diff --git a/src/wayland/CMakeLists.txt b/src/wayland/CMakeLists.txt index 2d81b2a34d..c37672e76c 100644 --- a/src/wayland/CMakeLists.txt +++ b/src/wayland/CMakeLists.txt @@ -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 diff --git a/src/wayland/textinput.cpp b/src/wayland/textinput.cpp new file mode 100644 index 0000000000..83701e3c75 --- /dev/null +++ b/src/wayland/textinput.cpp @@ -0,0 +1,7 @@ +/* + SPDX-FileCopyrightText: 2020 Bhushan Shah + + SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL +*/ + +#include "textinput.h" diff --git a/src/wayland/textinput.h b/src/wayland/textinput.h index 4eb7e3a53f..828ce56504 100644 --- a/src/wayland/textinput.h +++ b/src/wayland/textinput.h @@ -8,13 +8,15 @@ #include #include +#include +#include #include 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) } diff --git a/src/wayland/textinput_v2_interface.h b/src/wayland/textinput_v2_interface.h index 8845b5d3bb..10457bb567 100644 --- a/src/wayland/textinput_v2_interface.h +++ b/src/wayland/textinput_v2_interface.h @@ -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. *