summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget_mac.mm
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2011-01-04 11:03:37 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2011-01-04 14:02:31 (GMT)
commit7008c516cda01a24d034a1d44dfaab03be4bfdb9 (patch)
tree04e77f644b76c358d1164d427161161feb0df872 /src/gui/kernel/qwidget_mac.mm
parentf2e3ef4e1eb656e1ce9f980a7d7bf63444b02504 (diff)
downloadQt-7008c516cda01a24d034a1d44dfaab03be4bfdb9.zip
Qt-7008c516cda01a24d034a1d44dfaab03be4bfdb9.tar.gz
Qt-7008c516cda01a24d034a1d44dfaab03be4bfdb9.tar.bz2
Allow QWidget with size larger than 16383 on Mac OS X (Cocoa)
The restriction in place seems to be from the carbon ages, this is not required for cocoa, so removing it. QWidget autotests runs as before. Task-number: QTBUG-11415 Reviewed-by: Joao
Diffstat (limited to 'src/gui/kernel/qwidget_mac.mm')
-rw-r--r--src/gui/kernel/qwidget_mac.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm
index 059140e..3c5c458 100644
--- a/src/gui/kernel/qwidget_mac.mm
+++ b/src/gui/kernel/qwidget_mac.mm
@@ -4224,6 +4224,7 @@ void QWidgetPrivate::setWSGeometry(bool dontShow, const QRect &oldRect)
}
}
+#ifndef QT_MAC_USE_COCOA
const QRect validRange(-XCOORD_MAX,-XCOORD_MAX, 2*XCOORD_MAX, 2*XCOORD_MAX);
if (!validRange.contains(xrect)) {
// we are too big, and must clip
@@ -4242,6 +4243,7 @@ void QWidgetPrivate::setWSGeometry(bool dontShow, const QRect &oldRect)
wrect = xrect;
wrect.translate(-data.crect.topLeft()); // translate wrect in my Qt coordinates
}
+#endif //QT_MAC_USE_COCOA
}
// unmap if we are outside the valid window system coord system