path: root/src/plugins/platforms/ios/qiosscreen.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/qiosscreen.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/qiosscreen.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/qiosscreen.h b/src/plugins/platforms/ios/qiosscreen.h
index 7987ef82d5..7aa62b9190 100644
--- a/src/plugins/platforms/ios/qiosscreen.h
+++ b/src/plugins/platforms/ios/qiosscreen.h
@@ -63,6 +63,7 @@ public:
void setOrientationUpdateMask(Qt::ScreenOrientations mask);
UIScreen *uiScreen() const;
+ UIWindow *uiWindow() const;
void updateProperties();