diff options
author | Fabien Freling <fabien.freling@nokia.com> | 2011-05-23 09:18:42 (GMT) |
---|---|---|
committer | Fabien Freling <fabien.freling@nokia.com> | 2011-05-23 09:24:41 (GMT) |
commit | 5651fdf16a22cbf3ccd6663d5d5c95b420a3df13 (patch) | |
tree | b86027bcfe632a6c4d16bddb998a5585d14c801c | |
parent | eedab65056a6898e5a6f6bd103bed53e6787d334 (diff) | |
download | Qt-5651fdf16a22cbf3ccd6663d5d5c95b420a3df13.zip Qt-5651fdf16a22cbf3ccd6663d5d5c95b420a3df13.tar.gz Qt-5651fdf16a22cbf3ccd6663d5d5c95b420a3df13.tar.bz2 |
Force repaint of modal sheet in Cocoa.
With the raster engine on Mac OS X, modal sheets
only get their content painted once the sliding
down animation is over.
By forcing the repaint, the modal sheet has the
correct painting during the whole animation.
Task-number: QTBUG-17426
Reviewed-by: Samuel Rødal
-rw-r--r-- | src/gui/kernel/qapplication_mac.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_mac.mm b/src/gui/kernel/qapplication_mac.mm index f607a72..b82d212 100644 --- a/src/gui/kernel/qapplication_mac.mm +++ b/src/gui/kernel/qapplication_mac.mm @@ -715,6 +715,7 @@ void qt_event_request_showsheet(QWidget *w) { Q_ASSERT(qt_mac_is_macsheet(w)); #ifdef QT_MAC_USE_COCOA + w->repaint(); [NSApp beginSheet:qt_mac_window_for(w) modalForWindow:qt_mac_window_for(w->parentWidget()) modalDelegate:nil didEndSelector:nil contextInfo:0]; #else |