Changeset 651 for trunk/src/gui/widgets/qabstractscrollarea.cpp
- Timestamp:
- Mar 8, 2010, 12:52:58 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.2 (added) merged: 650 /branches/vendor/nokia/qt/current merged: 649 /branches/vendor/nokia/qt/4.6.1 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/widgets/qabstractscrollarea.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 20 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 1135 1135 { 1136 1136 Q_D(QAbstractScrollArea); 1137 QScrollBar *const bars[2] = { d->hbar, d->vbar }; 1138 int idx = (e->orientation() == Qt::Vertical) ? 1 : 0; 1139 int other = (idx + 1) % 2; 1140 if (!bars[idx]->isVisible() && bars[other]->isVisible()) 1141 idx = other; // If the scrollbar of the event orientation is hidden, fallback to the other. 1142 1143 QApplication::sendEvent(bars[idx], e); 1137 if (static_cast<QWheelEvent*>(e)->orientation() == Qt::Horizontal) 1138 QApplication::sendEvent(d->hbar, e); 1139 else 1140 QApplication::sendEvent(d->vbar, e); 1144 1141 } 1145 1142 #endif
Note:
See TracChangeset
for help on using the changeset viewer.