path: root/src/plugins/platforms/ios/qiosinputcontext.h
diff options
authorTor Arne Vestbø <>2014-11-25 15:43:52 +0100
committerTor Arne Vestbø <>2014-12-02 10:56:54 +0100
commit44e9e7fe199f197fe1e639e5fbcf858f4775d31b (patch)
tree07477f5629352867f0a68031a803afa793f244a2 /src/plugins/platforms/ios/qiosinputcontext.h
parentc59c8ddf1f98938441925e01d9931c3c1eb3f5cc (diff)
iOS: Simplify view management in QIOSKeyboardListener
We don't need to keep track of the view-controller or add ourselves as a gesture recognizer inside QIOSKeyboardListener. In fact, leaving the call to removeGestureRecognizer in [QIOSKeyboardListener dealloc] will result in QIOSKeyboardListener never being released, as the view that we add the recognizer to will keep a strong reference to the recognizer, so dealloc is never called unless the view is also released, which is unlikely to happen. We now fully control the lifetime of the recognizer. Change-Id: I6755e8cdfcc8f1062314db51aa54a2b7ecd1b967 Reviewed-by: Richard Moe Gustavsen <>
Diffstat (limited to 'src/plugins/platforms/ios/qiosinputcontext.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/qiosinputcontext.h b/src/plugins/platforms/ios/qiosinputcontext.h
index 174c44751c..eb6b04a2ac 100644
--- a/src/plugins/platforms/ios/qiosinputcontext.h
+++ b/src/plugins/platforms/ios/qiosinputcontext.h
@@ -91,6 +91,8 @@ public:
static QIOSInputContext *instance();
+ UIView* scrollableRootView();
union {
QIOSKeyboardListener *m_keyboardHideGesture;
id <KeyboardState> m_keyboardState;