summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r--src/plugins/platforms/uikit/quikiteventloop.mm9
1 files 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 <QtGui/QApplication>
#include <QtGui/QWidget>
-#include <QtDeclarative/QDeclarativeView>
-#include <QtDeclarative/QDeclarativeItem>
+#include <QtGui/QGraphicsView>
+#include <QtGui/QGraphicsScene>
+#include <QtGui/QGraphicsItem>
#include <QtDebug>
@interface QUIKitAppDelegate : NSObject <UIApplicationDelegate> {
@@ -218,13 +219,13 @@ bool QUIKitSoftwareInputHandler::eventFilter(QObject *obj, QEvent *event)
{
if (event->type() == QEvent::RequestSoftwareInputPanel) {
UIReturnKeyType returnKeyType = UIReturnKeyDone;
- if (QDeclarativeView *declarativeView = qobject_cast<QDeclarativeView *>(obj)) {
+ if (QGraphicsView *declarativeView = qobject_cast<QGraphicsView *>(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<QDeclarativeItem *>(scene->focusItem());
+ QObject *focus = dynamic_cast<QObject *>(scene->focusItem());
mCurrentFocusObject = focus;
if (focus) {
connect(mCurrentFocusObject, SIGNAL(activeFocusChanged(bool)), this, SLOT(activeFocusChanged(bool)));