summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qioswindow.h
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>2013-01-02 12:53:43 +0100
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-02-27 23:56:04 +0100
commit355f064ec97cf61c7041a6d32f198a6bde800e6e (patch)
treeff840b063f4ba63f2ac9522f025d0ec6c7e61265 /src/plugins/platforms/ios/qioswindow.h
parent7150e8f51f44b6299728c5bdfb8cb5b54b8d1141 (diff)
iOS: implement QPlatformWindow::raise() and lower()
Probably not going to be the most used functions on iOS, but implemented to support old widget apps out of the box. The implementation stacks both staysOnTop and popup windows on the same level for simplicity, since iOS does not have a concept of z-ordering UIViews (UILayer has z-order, but layers belong in a different hierarchy, and cannot be used in this respect). Change-Id: Idd68e5ceea7d4eaeb3066486c47400930cebb1b0 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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/qioswindow.h b/src/plugins/platforms/ios/qioswindow.h
index 1f36c525ce..e7b04c53eb 100644
--- a/src/plugins/platforms/ios/qioswindow.h
+++ b/src/plugins/platforms/ios/qioswindow.h
@@ -67,6 +67,9 @@ public:
void handleContentOrientationChange(Qt::ScreenOrientation orientation);
void setVisible(bool visible);
+ void raise() { raiseOrLower(true); }
+ void lower() { raiseOrLower(false); }
+
qreal devicePixelRatio() const;
int effectiveWidth() const;
int effectiveHeight() const;
@@ -78,6 +81,8 @@ private:
QRect m_requestedGeometry;
qreal m_devicePixelRatio;
+
+ void raiseOrLower(bool raise);
};
QT_END_NAMESPACE