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:
parent
7aa89944d7
commit
88db280f2a
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ const quint32 s_version = 1;
|
||||||
// helpers
|
// helpers
|
||||||
TextInputContentHints convertContentHint(uint32_t hint)
|
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;
|
TextInputContentHints ret = TextInputContentHint::None;
|
||||||
|
|
||||||
if (hints & QtWaylandServer::zwp_text_input_v2::content_hint_auto_completion) {
|
if (hints & QtWaylandServer::zwp_text_input_v2::content_hint_auto_completion) {
|
||||||
|
|
Loading…
Reference in a new issue