summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qioswindow.h
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>2013-01-25 11:49:34 +0100
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-02-27 23:56:06 +0100
commit38e6d5a91588bfe823ff6bcb19bd356965d328f7 (patch)
tree3e1ff8e2b766ecf3693b25d7cbcbe1ddc3408818 /src/plugins/platforms/ios/qioswindow.h
parentf2c52d65608d238ad35ca91099a8751e0c37ef52 (diff)
iOS: add QIOSWindow::windowLevel() to simplify window stacking
When adding modal windows into the mix, raiseOrLower became even more messy to write. So do it the usual way instead, and add a windowLevel variable to each QIOSWindow that we can sort on. The code becomes more readable, and we can handle more window types correctly. Change-Id: I348352473a7d8cf9909c17c1b074b2fe3fab9819 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'src/plugins/platforms/ios/qioswindow.h')
-rw-r--r--src/plugins/platforms/ios/qioswindow.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/platforms/ios/qioswindow.h b/src/plugins/platforms/ios/qioswindow.h
index b3a94a8d0e..2d7c4c9103 100644
--- a/src/plugins/platforms/ios/qioswindow.h
+++ b/src/plugins/platforms/ios/qioswindow.h
@@ -89,10 +89,11 @@ private:
int m_touchId;
QRect m_requestedGeometry;
-
+ int m_windowLevel;
qreal m_devicePixelRatio;
void raiseOrLower(bool raise);
+ void updateWindowLevel();
};
QT_END_NAMESPACE