equal
deleted
inserted
replaced
1474 else if (e->type() == QEvent::EnterEditFocus || e->type() == QEvent::LeaveEditFocus) { |
1474 else if (e->type() == QEvent::EnterEditFocus || e->type() == QEvent::LeaveEditFocus) { |
1475 if (QApplication::keypadNavigationEnabled()) |
1475 if (QApplication::keypadNavigationEnabled()) |
1476 d->sendControlEvent(e); |
1476 d->sendControlEvent(e); |
1477 } |
1477 } |
1478 #endif |
1478 #endif |
|
1479 #ifndef QT_NO_GESTURES |
1479 else if (e->type() == QEvent::Gesture) { |
1480 else if (e->type() == QEvent::Gesture) { |
1480 QGestureEvent *ge = static_cast<QGestureEvent *>(e); |
1481 QGestureEvent *ge = static_cast<QGestureEvent *>(e); |
1481 QPanGesture *g = static_cast<QPanGesture *>(ge->gesture(Qt::PanGesture)); |
1482 QPanGesture *g = static_cast<QPanGesture *>(ge->gesture(Qt::PanGesture)); |
1482 if (g) { |
1483 if (g) { |
1483 QScrollBar *hBar = horizontalScrollBar(); |
1484 QScrollBar *hBar = horizontalScrollBar(); |
1497 vBar->setValue(newY); |
1498 vBar->setValue(newY); |
1498 } |
1499 } |
1499 } |
1500 } |
1500 return true; |
1501 return true; |
1501 } |
1502 } |
|
1503 #endif // QT_NO_GESTURES |
1502 return QAbstractScrollArea::event(e); |
1504 return QAbstractScrollArea::event(e); |
1503 } |
1505 } |
1504 |
1506 |
1505 /*! \internal |
1507 /*! \internal |
1506 */ |
1508 */ |