Change the repaint() call to an update().
authorFabien Freling <fabien.freling@nokia.com>
Tue, 3 May 2011 12:28:56 +0000 (14:28 +0200)
committerFabien Freling <fabien.freling@nokia.com>
Tue, 10 May 2011 09:45:33 +0000 (11:45 +0200)
In show_sys(), if we directly call repaint() this
will triggers too many UpdateRequest events.
This fixes the qwidget autotest
"compatibilityChildInsertedEvents".

Reviewed-by: Richard Moe Gustavsen
(cherry picked from commit 747962e6ec20a59b7e2ed67c5cd685258f199a86)

src/gui/kernel/qwidget_mac.mm

index 8dc9d2e..27a1bb6 100644 (file)
@@ -3526,8 +3526,8 @@ void QWidgetPrivate::show_sys()
             // INVARIANT: q is native. Just show the view:
             [view setHidden:NO];
         } else {
-            // INVARIANT: q is alien. Repaint q instead:
-            q->repaint();
+            // INVARIANT: q is alien. Update q instead:
+            q->update();
         }
 #endif
     }