diff options
Diffstat (limited to 'src/qt3support/widgets/q3scrollview.cpp')
-rw-r--r-- | src/qt3support/widgets/q3scrollview.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt3support/widgets/q3scrollview.cpp b/src/qt3support/widgets/q3scrollview.cpp index 1178047..3be0145 100644 --- a/src/qt3support/widgets/q3scrollview.cpp +++ b/src/qt3support/widgets/q3scrollview.cpp @@ -870,15 +870,19 @@ void Q3ScrollView::updateScrollBars() mac_need_scroll = true; } else { QWidget *tlw = window(); +#ifndef QT_MAC_USE_COCOA QPoint tlw_br = QPoint(tlw->width(), tlw->height()), my_br = qt_mac_posInWindow(this) + QPoint(w, h); if(my_br.x() >= tlw_br.x() - 3 && my_br.y() >= tlw_br.y() - 3) +#endif mac_need_scroll = true; } if(mac_need_scroll) { +#ifndef QT_MAC_USE_COCOA WindowAttributes attr; GetWindowAttributes((WindowPtr)handle(), &attr); mac_need_scroll = (attr & kWindowResizableAttribute); +#endif } if(mac_need_scroll) { showc = true; |