From 13adf9609f7512869af9e0d3f853c88dabd6fc3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 2 Jun 2016 11:54:14 +0200 Subject: [PATCH] Fix broken build Sorry, forgot to adjust the enum naming to latest round of changes in KWayland. --- virtualkeyboard.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/virtualkeyboard.cpp b/virtualkeyboard.cpp index f62089c200..a18a36c402 100644 --- a/virtualkeyboard.cpp +++ b/virtualkeyboard.cpp @@ -314,13 +314,13 @@ bool VirtualKeyboard::event(QEvent *e) if (!contentHints.testFlag(TextInputInterface::ContentHint::AutoCapitalization)) { hints |= Qt::ImhNoAutoUppercase; } - if (contentHints.testFlag(TextInputInterface::ContentHint::Lowercase)) { + if (contentHints.testFlag(TextInputInterface::ContentHint::LowerCase)) { hints |= Qt::ImhPreferLowercase; } - if (contentHints.testFlag(TextInputInterface::ContentHint::Uppercase)) { + if (contentHints.testFlag(TextInputInterface::ContentHint::UpperCase)) { hints |= Qt::ImhPreferUppercase; } - if (contentHints.testFlag(TextInputInterface::ContentHint::Titlecase)) { + if (contentHints.testFlag(TextInputInterface::ContentHint::TitleCase)) { // no mapping in Qt } if (contentHints.testFlag(TextInputInterface::ContentHint::HiddenText)) { @@ -356,7 +356,7 @@ bool VirtualKeyboard::event(QEvent *e) case TextInputInterface::ContentPurpose::Time: hints |= Qt::ImhTime; break; - case TextInputInterface::ContentPurpose::Datetime: + case TextInputInterface::ContentPurpose::DateTime: hints |= Qt::ImhDate; hints |= Qt::ImhTime; break;