From 89c8b1908ccaf13e6722bb7f2344f46fe6ba7e15 Mon Sep 17 00:00:00 2001 From: Ian Dean Date: Wed, 18 Jul 2012 13:58:04 -0700 Subject: Remove QtDeclarative dependency from UIKit plugin. Change-Id: I8425b98ecb908b1b912385c3ed2acb9df4b47f2d Reviewed-by: Eskil Abrahamsen Blomfeldt Reviewed-by: Eike Ziller --- src/plugins/platforms/uikit/quikiteventloop.mm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/plugins/platforms/uikit/quikiteventloop.mm b/src/plugins/platforms/uikit/quikiteventloop.mm index ab7e241..404ac84 100644 --- a/src/plugins/platforms/uikit/quikiteventloop.mm +++ b/src/plugins/platforms/uikit/quikiteventloop.mm @@ -49,8 +49,9 @@ #include #include -#include -#include +#include +#include +#include #include @interface QUIKitAppDelegate : NSObject { @@ -218,13 +219,13 @@ bool QUIKitSoftwareInputHandler::eventFilter(QObject *obj, QEvent *event) { if (event->type() == QEvent::RequestSoftwareInputPanel) { UIReturnKeyType returnKeyType = UIReturnKeyDone; - if (QDeclarativeView *declarativeView = qobject_cast(obj)) { + if (QGraphicsView *declarativeView = qobject_cast(obj)) { // register on loosing the focus, so we can auto-remove the input panel again QGraphicsScene *scene = declarativeView->scene(); if (scene) { if (mCurrentFocusObject) disconnect(mCurrentFocusObject, 0, this, SLOT(activeFocusChanged(bool))); - QDeclarativeItem *focus = static_cast(scene->focusItem()); + QObject *focus = dynamic_cast(scene->focusItem()); mCurrentFocusObject = focus; if (focus) { connect(mCurrentFocusObject, SIGNAL(activeFocusChanged(bool)), this, SLOT(activeFocusChanged(bool))); -- cgit v0.12