Cocoa: Disable malfunctioning updateScreens().
authorMorten Johan Sørvig <morten.sorvig@digia.com>
Fri, 2 Nov 2012 14:21:19 +0000 (15:21 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 2 Nov 2012 14:48:53 +0000 (15:48 +0100)
The current updateScreens() implementations deletes
QScreens and creates new ones. Deleting a QScreen hides
all its windows. The result is that Qt windows disappears
when applicationDidChangeScreenParameters is called.

Change-Id: I5870d025d2bbf36621817cb220a835d1a6b367dc
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm

index 3023100..d44ff0f 100644 (file)
@@ -344,12 +344,6 @@ static void cleanupCocoaApplicationDelegate()
 */
 }
 
-- (void)applicationDidChangeScreenParameters:(NSNotification *)notification
-{
-    Q_UNUSED(notification);
-    ((QCocoaIntegration*)QGuiApplicationPrivate::platformIntegration())->updateScreens();
-}
-
 - (void)setReflectionDelegate:(NSObject <NSApplicationDelegate> *)oldDelegate
 {
     [oldDelegate retain];