diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-07-08 08:11:03 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-07-08 08:14:09 (GMT) |
commit | 4d2f47da2e4869b0419cf13856ddca8a3e34e88a (patch) | |
tree | 9978fbf74db97ad24c824ea59b011b47da6fe779 /src/gui | |
parent | e33704cdd6f935410dbbdbfedca6ddd648e70f4e (diff) | |
download | Qt-4d2f47da2e4869b0419cf13856ddca8a3e34e88a.zip Qt-4d2f47da2e4869b0419cf13856ddca8a3e34e88a.tar.gz Qt-4d2f47da2e4869b0419cf13856ddca8a3e34e88a.tar.bz2 |
The offset of cropRect should not depend on the position of the window
The rect cropRect should be positioned with the offset to the
top-level window, not the screen position.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qwidget_mac.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm index 48e174b..ad16485 100644 --- a/src/gui/kernel/qwidget_mac.mm +++ b/src/gui/kernel/qwidget_mac.mm @@ -3905,7 +3905,7 @@ void QWidgetPrivate::setWSGeometry(bool dontShow, const QRect &oldRect) // we are too big, and must clip QPoint screenOffset(0, 0); // offset of the part being on screen const QWidget *parentWidget = q->parentWidget(); - while (parentWidget) { + while (parentWidget && !parentWidget->isWindow()) { screenOffset -= parentWidget->data->crect.topLeft(); parentWidget = parentWidget->parentWidget(); } |