Ignore:
Timestamp:
Mar 8, 2010, 12:52:58 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.2 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/widgets/qabstractscrollarea.cpp

    r561 r651  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 20 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    11351135{
    11361136    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);
    11441141}
    11451142#endif
Note: See TracChangeset for help on using the changeset viewer.