From 5757b8c516ad0d613739b222687583bca914a981 Mon Sep 17 00:00:00 2001 From: Mike Krus Date: Tue, 23 Jun 2015 22:37:10 +0100 Subject: Return format as specified in original QWindow Overload QPlatformWindow::format() to return the desired format defined in the QWindow. This is required for windows that define specific surface formats (such as those used in Qt3d which require a depth buffer). This is similar to what is done in the OS X Cocoa QPA plugin. Change-Id: I7661a2a9c4e13603d03d3a5be10d000f73c712e6 Reviewed-by: Sean Harmer --- src/plugins/platforms/ios/qioswindow.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/platforms/ios/qioswindow.h') diff --git a/src/plugins/platforms/ios/qioswindow.h b/src/plugins/platforms/ios/qioswindow.h index b45f629310..c53eee1afd 100644 --- a/src/plugins/platforms/ios/qioswindow.h +++ b/src/plugins/platforms/ios/qioswindow.h @@ -80,6 +80,8 @@ public: void clearAccessibleCache(); + QSurfaceFormat format() const Q_DECL_OVERRIDE; + private: void applicationStateChanged(Qt::ApplicationState state); void applyGeometry(const QRect &rect); -- cgit v1.2.3