summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorten Sorvig <msorvig@trolltech.com>2009-09-11 07:27:16 +0200
committerMorten Sorvig <msorvig@trolltech.com>2009-09-11 07:27:16 +0200
commitaad2316995d46cb8a1bfc2763c0617b0c7c92307 (patch)
treec3946842911e884fa7047d27d611d92faaab3655 /src
parent53e1c8983b0093ce2b63f90eaee856f57961c00f (diff)
Run on 10.3 Panther.
HIViewSetNeedsDisplayInRect was added in 10.4.
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qwidget_mac.mm5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm
index c5418f64b6..09ac2c34b7 100644
--- a/src/gui/kernel/qwidget_mac.mm
+++ b/src/gui/kernel/qwidget_mac.mm
@@ -3781,7 +3781,10 @@ static void qt_mac_update_widget_posisiton(QWidget *q, QRect oldRect, QRect newR
(oldRect.isValid() == false || newRect.isValid() == false) ||
// the position update is a part of a drag-and-drop operation
- QDragManager::self()->object
+ QDragManager::self()->object ||
+
+ // we are on Panther (no HIViewSetNeedsDisplayInRect)
+ QSysInfo::MacintoshVersion < QSysInfo::MV_10_4
){
HIViewSetFrame(view, &bounds);
return;