iOS: add QIOSWindow::windowLevel() to simplify window stacking
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>
Fri, 25 Jan 2013 10:49:34 +0000 (11:49 +0100)
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>
Wed, 27 Feb 2013 22:56:06 +0000 (23:56 +0100)
commit38e6d5a91588bfe823ff6bcb19bd356965d328f7
tree3e1ff8e2b766ecf3693b25d7cbcbe1ddc3408818
parentf2c52d65608d238ad35ca91099a8751e0c37ef52
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>
src/plugins/platforms/ios/qioswindow.h
src/plugins/platforms/ios/qioswindow.mm