diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-11-09 12:20:37 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-11-09 12:20:37 (GMT) |
commit | 09d00073e50957ca183e40f0d22aeef9c82edb49 (patch) | |
tree | fb53d8e800ae1d5e2740ec35b47ebea86eb2a008 /src/gui/widgets | |
parent | 9fbcda80c8857202db01f58a9568e16604518b88 (diff) | |
parent | d6a23684c8546fcd20ac032aa01985ca7ac69128 (diff) | |
download | Qt-09d00073e50957ca183e40f0d22aeef9c82edb49.zip Qt-09d00073e50957ca183e40f0d22aeef9c82edb49.tar.gz Qt-09d00073e50957ca183e40f0d22aeef9c82edb49.tar.bz2 |
Merge branch '4.6-platform' into 4.6
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qabstractscrollarea.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/qplaintextedit.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/qabstractscrollarea.cpp b/src/gui/widgets/qabstractscrollarea.cpp index 48099ef..b0d0baf 100644 --- a/src/gui/widgets/qabstractscrollarea.cpp +++ b/src/gui/widgets/qabstractscrollarea.cpp @@ -963,7 +963,7 @@ bool QAbstractScrollArea::event(QEvent *e) if (g) { QScrollBar *hBar = horizontalScrollBar(); QScrollBar *vBar = verticalScrollBar(); - QPointF delta = g->lastOffset(); + QPointF delta = g->delta(); if (!delta.isNull()) { if (QApplication::isRightToLeft()) delta.rx() *= -1; diff --git a/src/gui/widgets/qplaintextedit.cpp b/src/gui/widgets/qplaintextedit.cpp index 0de7421..18adc6c 100644 --- a/src/gui/widgets/qplaintextedit.cpp +++ b/src/gui/widgets/qplaintextedit.cpp @@ -1465,7 +1465,7 @@ bool QPlainTextEdit::event(QEvent *e) // QPlainTextEdit scrolls by lines only in vertical direction QFontMetrics fm(document()->defaultFont()); int lineHeight = fm.height(); - int newX = hBar->value() - g->lastOffset().x(); + int newX = hBar->value() - g->delta().x(); int newY = d->originalOffsetY - offset.y()/lineHeight; hBar->setValue(newX); vBar->setValue(newY); |