summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qioswindow.h
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2014-10-15 17:33:27 +0200
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>2014-10-20 11:42:30 +0200
commit3ab4e869e205ecd9bbce46281d6c1cc74da94228 (patch)
treeb414f42870a848861a95eaaa4be4ea24e1c74536 /src/plugins/platforms/ios/qioswindow.h
parent31e987f8f02d18717407235947ed60c5ee29d8d7 (diff)
iOS: Don't auto-activate popup windows unless they are standalone
We try to emulate a traditional window manager by activating windows on touch press (before delivering the event), and on showing/hiding windows, but this logic should not apply to popup windows (including tooltips and tool windows), as they are in most cases already active through their parent or transient parent, and should not steal keyboard focus and bring the virtual keyboard down. Change-Id: If10082bd48cdf1a9e1c41d8809066e86dafd7ffc Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'src/plugins/platforms/ios/qioswindow.h')
-rw-r--r--src/plugins/platforms/ios/qioswindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/qioswindow.h b/src/plugins/platforms/ios/qioswindow.h
index 6c52763610..65b4f6dd7d 100644
--- a/src/plugins/platforms/ios/qioswindow.h
+++ b/src/plugins/platforms/ios/qioswindow.h
@@ -66,6 +66,8 @@ public:
void raise() { raiseOrLower(true); }
void lower() { raiseOrLower(false); }
+
+ bool shouldAutoActivateWindow() const;
void requestActivateWindow();
qreal devicePixelRatio() const;