diff options
| -rw-r--r-- | recipes-qt/maliit/maliit-framework-qt5/qt5.3-fix.patch | 43 | ||||
| -rw-r--r-- | recipes-qt/maliit/maliit-framework-qt5_git.bb | 3 |
2 files changed, 1 insertions, 45 deletions
diff --git a/recipes-qt/maliit/maliit-framework-qt5/qt5.3-fix.patch b/recipes-qt/maliit/maliit-framework-qt5/qt5.3-fix.patch deleted file mode 100644 index 4f8890f3..00000000 --- a/recipes-qt/maliit/maliit-framework-qt5/qt5.3-fix.patch +++ /dev/null | |||
| @@ -1,43 +0,0 @@ | |||
| 1 | Fix compatibility with qt-5.3 | ||
| 2 | |||
| 3 | https://bugs.launchpad.net/ubuntu/+source/maliit-framework/+bug/1323962 | ||
| 4 | |||
| 5 | Upstream-Status: Pending | ||
| 6 | |||
| 7 | diff --git a/src/maliit/plugins/updateevent.cpp b/src/maliit/plugins/updateevent.cpp | ||
| 8 | index 06a5228..85b7166 100644 | ||
| 9 | --- a/src/maliit/plugins/updateevent.cpp | ||
| 10 | +++ b/src/maliit/plugins/updateevent.cpp | ||
| 11 | @@ -38,7 +38,7 @@ bool MImUpdateEventPrivate::isFlagSet(Qt::InputMethodHint hint, | ||
| 12 | bool result = false; | ||
| 13 | |||
| 14 | if (update.contains(Maliit::Internal::inputMethodHints)) { | ||
| 15 | - const Qt::InputMethodHints hints(static_cast<Qt::InputMethodHints>( | ||
| 16 | + const Qt::InputMethodHints hints(static_cast<int>( | ||
| 17 | update.value(Maliit::Internal::inputMethodHints).toLongLong())); | ||
| 18 | |||
| 19 | result = (hints & hint); | ||
| 20 | @@ -89,8 +89,8 @@ QStringList MImUpdateEvent::propertiesChanged() const | ||
| 21 | Qt::InputMethodHints MImUpdateEvent::hints(bool *changed) const | ||
| 22 | { | ||
| 23 | Q_D(const MImUpdateEvent); | ||
| 24 | - return static_cast<Qt::InputMethodHints>( | ||
| 25 | - d->extractProperty(Maliit::Internal::inputMethodHints, changed).toLongLong()); | ||
| 26 | + return Qt::InputMethodHints(static_cast<int>( | ||
| 27 | + d->extractProperty(Maliit::Internal::inputMethodHints, changed).toLongLong())); | ||
| 28 | } | ||
| 29 | |||
| 30 | bool MImUpdateEvent::westernNumericInputEnforced(bool *changed) const | ||
| 31 | diff --git a/src/mimpluginmanager.cpp b/src/mimpluginmanager.cpp | ||
| 32 | index 02788a4..3c5c99a 100644 | ||
| 33 | --- a/src/mimpluginmanager.cpp | ||
| 34 | +++ b/src/mimpluginmanager.cpp | ||
| 35 | @@ -1493,7 +1493,7 @@ void MIMPluginManager::handleWidgetStateChanged(unsigned int clientId, | ||
| 36 | } | ||
| 37 | } | ||
| 38 | |||
| 39 | - const Qt::InputMethodHints lastHints = static_cast<Qt::InputMethodHints>(newState.value(Maliit::Internal::inputMethodHints).toLongLong()); | ||
| 40 | + const Qt::InputMethodHints lastHints(static_cast<int>(newState.value(Maliit::Internal::inputMethodHints).toLongLong())); | ||
| 41 | MImUpdateEvent ev(newState, changedProperties, lastHints); | ||
| 42 | |||
| 43 | // general notification last | ||
diff --git a/recipes-qt/maliit/maliit-framework-qt5_git.bb b/recipes-qt/maliit/maliit-framework-qt5_git.bb index 83da8cad..975892d6 100644 --- a/recipes-qt/maliit/maliit-framework-qt5_git.bb +++ b/recipes-qt/maliit/maliit-framework-qt5_git.bb | |||
| @@ -9,10 +9,9 @@ inherit qmake5 | |||
| 9 | SRC_URI = "git://github.com/maliit/framework.git;branch=master \ | 9 | SRC_URI = "git://github.com/maliit/framework.git;branch=master \ |
| 10 | file://0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch \ | 10 | file://0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch \ |
| 11 | file://maliit-server.desktop \ | 11 | file://maliit-server.desktop \ |
| 12 | file://qt5.3-fix.patch \ | ||
| 13 | " | 12 | " |
| 14 | 13 | ||
| 15 | SRCREV = "17fdf8699c53ddfb2c15df8e11d46804e782fec5" | 14 | SRCREV = "60b1b10de14f932420313c547ab801daf522d539" |
| 16 | PV = "0.99.0+git${SRCPV}" | 15 | PV = "0.99.0+git${SRCPV}" |
| 17 | 16 | ||
| 18 | 17 | ||
