Fix -Wdeprecated-enum-enum-conversion

Even though zwp_text_input_v2_content_hint and
QtWaylandServer::zwp_text_input_v2::content_hint represent the same
values, they are not the same from the compiler perspective.
This commit is contained in:
Vlad Zahorodnii 2023-03-14 17:57:37 +02:00
parent 7aa89944d7
commit 88db280f2a

View file

@ -18,7 +18,7 @@ const quint32 s_version = 1;
// helpers
TextInputContentHints convertContentHint(uint32_t hint)
{
const auto hints = zwp_text_input_v2_content_hint(hint);
const auto hints = QtWaylandServer::zwp_text_input_v2::content_hint(hint);
TextInputContentHints ret = TextInputContentHint::None;
if (hints & QtWaylandServer::zwp_text_input_v2::content_hint_auto_completion) {